nix-bundle icon indicating copy to clipboard operation
nix-bundle copied to clipboard

Statically compile AppImage

Open matthewbauer opened this issue 7 years ago • 3 comments

Right now AppImage does dynamic linking to some libraries like FUSE and SquashFS. Ideally we could statically compile everything. This will increase our bundle size a little but will mean we don't need 'test-appimage.nix'.

Most likely we will have to slightly modify appimagetool to get this to work.

matthewbauer avatar Mar 08 '18 18:03 matthewbauer

Sounds good! This isn't a regression is it?

dtzWill avatar Mar 08 '18 19:03 dtzWill

No AFAIK appimagetool has always used dynamic libraries.

matthewbauer avatar Mar 08 '18 19:03 matthewbauer

Check https://github.com/AppImage/AppImageKit/issues/45#issuecomment-280866698.

https://github.com/AppImage/AppImageKit/blob/appimagetool/master/src/runtime.c is the code that you would need to get compiled statically.

probonopd avatar Mar 08 '18 19:03 probonopd