probonopd / static-appimage

Alternative AppImage runtime
The Unlicense
5 stars 0 forks source link

Switch from zip to squashfs #2

Open probonopd opened 2 years ago

probonopd commented 2 years ago

Switch from zip to squashfs.

Maybe @CalebQ42 has an idea how to do that?

CalebQ42 commented 2 years ago

In theory this shouldn't be too bad.

For make-static-appimage is probably the hardest to convert. As of right now, I haven't put too much work into adding the ability to create squashfs archives into my library. In the meantime though, it shouldn't be too difficult to replace it with calls to mksquashfs.

For static-appimage-runtime it only really needs squashfs fuse bindings to work. Due to squashfs being a compressed filesystem this shouldn't be difficult and the library I'm planning on using makes it fairly easy to implement only some calls (since it'll be RO anyway) (https://pkg.go.dev/github.com/u-root/fuse/fuseutil if your interested).

probonopd commented 2 years ago

That's great to hear @CalebQ42. Using mksquashfs would be totally fine. Especially now that we have a static build.