Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remeh/fatbin
Compress an executable and its resources in an auto-extractible and runnable file.
https://github.com/remeh/fatbin
Last synced: 3 months ago
JSON representation
Compress an executable and its resources in an auto-extractible and runnable file.
- Host: GitHub
- URL: https://github.com/remeh/fatbin
- Owner: remeh
- License: mit
- Created: 2016-01-22T19:20:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-24T17:46:00.000Z (almost 9 years ago)
- Last Synced: 2023-07-12T01:52:57.139Z (over 1 year ago)
- Language: Go
- Homepage: https://remy.io
- Size: 18.6 KB
- Stars: 17
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fatbin
Instead of shipping a ZIP containing resources (images, sounds, etc.) and an executable, `fatbin` permits to compress everything in an unique executable file.
It's my entry to the GopherGala 2016.
## Howto
Example video : https://c.remy.io/oweinxoW
### Create an archive
Usage:
```
-f.dir string
the directory to fatbinerize
-f.exe string
the file inside the fatbin archive to execute at startup
-f.out string
the archive file to create. (default "archive.fbin")
```Example:
```
fatbin -f.dir /path/to/my/program -f.exe main -f.out program.fbin
```Current limitation: the executable runned at startup must in the root of the compressed directory.
### Start an archive
The archive is an executable which can directly be started.
```
./program.fbin
```## Future work
* Compress the archive with something else than gzip.
* Ship "surrounding" files in the temporary execution context. (e.g. for .conf)## License
fatbin, created by Rémy 'remeh' Mathieu, is under the terms of the MIT License.