An open API service indexing awesome lists of open source software.

https://github.com/munawwar/launcher

Cross-platform binary launcher with Cosmopolitan libc
https://github.com/munawwar/launcher

Last synced: 7 months ago
JSON representation

Cross-platform binary launcher with Cosmopolitan libc

Awesome Lists containing this project

README

          

# Launcher

Cross-platform binary launcher

Usage: `launch [binary name]`

Lets say you have a list of binaries like the following:
```
goaws-linux-x86_64
goaws-darwin-arm64
goaws-darwin-x86_64
goaws-windows-x86_64.exe
```

And lets say you want a single command to pick and execute the correct binary on a developer's machine based on the OS they use.

Then you can ship `launch` binary and run

```sh
launch goaws
```
(`goaws` is just an example here, could be any prefix)

And that will run the correct `goaws` binary from the current working directory.

Following OS and architecture filname suffix combinations are supported:
```
-linux-x86_64
-linux-arm64
-darwin-x86_64
-darwin-arm64
-windows-x86_64.exe
-windows-arm64.exe
-bsd-x86_64
-bsd-arm64
```

## Build the binary yourself?

Download cosmo compiler
```sh
mkdir -p cosmocc
cd cosmocc
wget https://cosmo.zip/pub/cosmocc/cosmocc.zip
unzip cosmocc.zip
cd ..
```

Next, build the file:
```sh
cosmocc/bin/cosmocc -o launch launch.c
```