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
- Host: GitHub
- URL: https://github.com/munawwar/launcher
- Owner: Munawwar
- License: mit
- Created: 2025-03-11T07:48:22.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-11T08:14:59.000Z (7 months ago)
- Last Synced: 2025-03-11T09:20:41.097Z (7 months ago)
- Language: C
- Size: 288 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```