Update of "exe"
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Artifact ID: | 462befdde34b4a466f07dae59847a929f44cce8d |
---|---|
Page Name: | exe |
Date: | 2014-12-15 15:19:04 |
Original User: | mario |
Mimetype: | text/x-markdown |
Parent: | 2d105bf3ff02b65431053f2418444067fdfdf0ca (diff) |
Next | 5a2a43406718cf7396bfaaf244abf48eb7324c5f |
Trivial .exe target (Windows SFX installers)
- fpm issue: #810
- orig gist: fpm…package…exe.rb
Creates basic self-extracting zips, with an Installer-like look and feel, courtesy of FreeExtractor. Its makesfx.exe
runs well under wine/Linux; and neatly maps fpm package information.
Obviously its use regularily requires
- Actually being able to build for win32.
- Crafting a windows-specific
start.cmd
wrapper etc. - and packaging files relocatable without absolute paths (no
--prefix
) - so they can end up in
$programfiles$/appxy
.
The xpm
version doesn't require the middleman (wine makesfx.exe
) anymore. The SFX stub is built-in. The final "installer" .exe
is just a concatenation of:
the SFX binary,
MZP@C@...
an INI-style description block (max 1024 byte),
[FE] Name='package' ZipSize=20524 Exec= DefaultPath=C:/App/ Intro="...\n" URL= Author=
Moreover it includes a customized
[FPM]
ini section now, which retains a few morefpm
packaging parameters. This allows the resulting installer data to be imported again (fpm -s exe -t deb
). The field mapping still needs some fine tuning though.and the plain ZIP archive appended.
PKCDT@B@...
And the icon somewhere in between. Can be overwritten, but requires a 2236-byte sized .ico file.