This example shows how to build a self-extractable Installer on Linux.
├── app <== The app directory containing the original contents
│ └── run_app.sh <== The entrypoint of our app
├── app_stub.sh <== The stub responsible for extracting and running the app
├── build.sh <== Build helper
├── Makefile <== Makefile for build automation
└── README.md <== Documentation of this repo
./build.sh
or make build
- Creates
app.tar.gz
from the app directory, and - Creates
selfextract_app.bin
fromapp_stub.sh
andapp.tar.gz
in that order
sh selfextract_app.bin
- Extracts app from
app.tar.gz
into a TEMP directory, and - Runs
run_app.sh