unzipsfx

Create self-extracting ZIP executables

TLDR

TLDR

Create self-extracting binary
$ cat $(which unzipsfx) [path/to/archive.zip] > [filename] && chmod 755 [filename]
Extract self-extracting binary
$ ./[path/to/binary]
Test for errors
$ ./[path/to/binary] -t
Print file content without extracting
$ ./[path/to/binary] -c [path/to/file]
Show comments
$ ./[path/to/binary] -z

SYNOPSIS

unzipsfx is typically concatenated with a ZIP archive

DESCRIPTION

unzipsfx creates self-extracting compressed binary files by prepending self-extracting stubs to ZIP archives. The resulting executable can extract itself without requiring unzip to be installed.The stub is typically concatenated with a ZIP archive using cat, then made executable.

PARAMETERS

-t

Test archive for errors
-c FILE
Print file content without extraction
-z
Print archive comments

INSTALL

sudo apt install unzip
sudo dnf install unzip
sudo pacman -S unzip
sudo apk add unzip
sudo zypper install unzip
brew install unzip
nix profile install nixpkgs#unzip

CAVEATS

Self-extracting binaries are platform-specific. The stub adds size overhead to the archive. Some systems may block execution of self-extracting archives.

SEE ALSO

zip(1), unzip(1)