question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Linux AppImage] support type 2 image format

See original GitHub issue

Just a heads-up that we are working on the type 2 image format for AppImage. It will have a number of advantages:

  • Uses more mordern, more flexible squashfs rather than outdated zisofs
  • Optionally, can use different compressors
  • Optionally, can embed digital signatures in an ELF section inside the AppImage
  • Does not require fixed offsets
  • Stores optional update information in an ELF section
  • Is more future-proof

Since electron-builder is an important stakeholder in the AppImage ecosystem, some aspects of the type 2 image format were specifically designed with tools like electron-builder in mind that might want to use their own tools (e.g., mksquashfs, similar to xorriso) rather than the ones provided by AppImageKit, in fact this has been made super simple:

mksquashfs Your.AppDir Your.squashfs -root-owned -noappend
cat runtime >> Your.AppImage
cat Your.squashfs >> Your.AppImage
chmod a+x Your.AppImage

Note that there are no fixed offsets to observe, unlike with type 1 AppImages.

If you want to play with it, here are the tools (will move into AppImageKit when ready): https://github.com/probonopd/appimagetool

Would electron-builder consider to switch to the type 2 image format? If no, what would need to be changed?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
probonopdcommented, Oct 2, 2017

👍

cc @TheAssassin

1reaction
develarcommented, Sep 21, 2017

Status — overloaded 😦 Will be done in several weeks as part of Linux auto update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppImage | Linux apps that run anywhere
The key idea of the AppImage format is one app = one file. Every AppImage contains an app and all the files the...
Read more >
The future of AppImage: Type 2 and new tools
It can be used to generate AppImages in the new experimental format. Coming along nicely. Have added the type 2 image format to...
Read more >
Running AppImages
This is only available for type 2 AppImages. ... Mounting and unmounting devices, files, images and also AppImages requires root permissions ...
Read more >
Best practices - AppImage documentation
It is crucial to understand that AppImage is merely a format for distributing applications. In this regard, AppImage is like a .zip file...
Read more >
pkg2appimage - AppImage documentation
The easiest way to build an AppImage is to write a . yml file. We developed a rather simple format that allows developers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found