shell2bin

Crates.ioshell2bin
lib.rsshell2bin
version2.0.0
sourcesrc
created_at2022-11-06 21:25:53.20864
updated_at2022-11-06 21:28:07.350194
descriptionA tool for converting shell scripts to executables
homepagehttps://github.com/bennett-sh/shell2bin
repositoryhttps://github.com/bennett-sh/shell2bin
max_upload_size
id706753
size8,461
Bennett (bennett-sh)

documentation

README

🐚 shell2bin

A simple program to package shell scripts (sh, bat, ...) as executables

✏️ Usage

shell2bin <script> [<output name without extension>]

📦 Requirements

  • Rust (with cargo & rustc in path)

💠 Installation

  1. Install requirements
  2. Run cargo install shell2bin
  3. Profit.

📂 Supported languages

Most script languages should be supported when installed. You will need to specify the language using either a shebang or using a S2B-annotation. Both shebangs and S2B-annotations must be on the first line of the file. The only exception to this are batch files. Here you can add an @echo off on the line before a S2B-annotation. The syntax of S2B-annotations is the following: [Line comment in language; supported: #, "rem " and //]S2B:[program] [<args>]

Examples:

#!/bin/bash
ls
@echo off
rem S2B:cmd.exe /C
ls
rem S2B:cmd.exe /C
ls
#S2B:python
print("Hello world!")

🐛 Known Issues

Currently, there are no issues known. Feel free to report any issues using the Issues-tab.

Commit count: 10

cargo fmt