File: zzipself.txt

package info (click to toggle)
zziplib 0.13.56-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,760 kB
  • ctags: 2,135
  • sloc: sh: 12,147; ansic: 7,392; perl: 2,826; python: 2,190; makefile: 968; sed: 44
file content (9 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (26)
1
2
3
4
5
6
7
8
9
HOWTO create an exe-file with an appended zip-resource - file

we assume an imaginary game called "tetris.exe"
1. create a zip-archive "tetris.zip" and store "tetris.exe" with NO COMPRESSION (-e0 option in pkzip)
2. add your data-files, images and sounds to "tetris.zip" with arbitrary compression
3. call "setstub tetris.zip tetris.exe"
4. rename tetris.zip into tetris.exe

now your app should be able read data from itself.