electron-builder: AppImage files no longer runnable after upgrading to Electron-Builder@23.0.0
- Electron-Builder Version: 23.0.0
- Node Version: 14.17.6
- Electron Version: 17.0.0
- Electron Type (current, beta, nightly): Current/stable
- Target: Linux AppImage
Newly generated AppImage executables throw an error when executed: “Cannot mount AppImage, please check your FUSE setup”
Upon downgrading to 22.x.x, the AppImage executables work perfectly again.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28
Commits related to this issue
- Fix: Downgrading app-builder-bin in an attempt to resolve #6678 — committed to electron-userland/electron-builder by mmaietta 2 years ago
- Update appImage.go See: https://github.com/electron-userland/electron-builder/issues/6678 — committed to mmaietta/app-builder by mmaietta 2 years ago
- Update appImage.go (#77) See: https://github.com/electron-userland/electron-builder/issues/6678 — committed to develar/app-builder by mmaietta 2 years ago
- Fix: Upgrading app-builder-bin in an attempt to resolve #6678 — committed to electron-userland/electron-builder by mmaietta 2 years ago
- Fix: Downgrading app-builder-bin in an attempt to resolve #6678 — committed to electron-userland/electron-builder by mmaietta 2 years ago
- Fix: Downgrading app-builder-bin to fix unusable AppImage. Fixes #6678 (#6684) — committed to electron-userland/electron-builder by mmaietta 2 years ago
Published in v23.0.2 🙂
Nvm, I took a stab at it just by reading the error logs. I think it’ll fix it, but as the PR says, I have no idea how to test it. PR https://github.com/develar/app-builder/pull/77
@develar please take a look when you have a chance, that way we can have a proper fix in electron-builder without reverting lzo feature introduction.
Thanks for the updates.
Downgrading to 4.0.0 breaks a bunch of other tests with snaps, I’m still trying to figure out a graceful downgrade.
@Slapbox Would you be willing to open a ticket/issue in the app-builder repo regarding the broken
appimagefor app-builder-bin 4.0.1? We’ll want to have this tracked there as well as we’re effectively blocked on upgrading to future versions of app-builder-bin.I’ll downgrade app-builder-bin to 4.0.0, it looks like it may drop snap lzo support though. Oh well…previous functionality shouldn’t be broken.
I think if we can downgrade
app-builder-binto 4.0.0, that might resolve the issue since that predates the compression enum changes I think I’m purely basing it off of the two app-builder-bin releases that were 6mo ago seem to align with the two commits here: https://github.com/develar/app-builder/commits/masterEither that, or we have to rollback to 3.x and hopefully not remove any recently introduced features.
Seconding the slow startup with
xzcompression, for my app the startup is several orders of magnitude slower with the xz appimage, ~15 seconds to hit application code and a further ~30 seconds to initialise and show the first window instead of around 0.4 seconds for the entire boot up phase to complete using the unpacked linux folder distribution.@mmaietta yes, this is exactly the issue I’ve been having with #6624, you’re correct.
I think it might be this commit on app-builder-bin? https://github.com/develar/app-builder/commit/c24d1b50fbd313650ccab2021945eb006a39f0ae Commit title has
AppImage runtime 13I honestly don’t know a thing about AppImages
Is there any additional info to the error? Something like this?
Squashfs image uses (null) compression, this version supports only xz, zlib.@mmaietta thanks for your continuing work on this!
I’m sorry to report that using yarn’s
resolutionsto pinapp-builder-binto4.1.1across our project didn’t fix the issue - we still get the message about “please check your FUSE setup.”Here’s the output of
yarn why app-builder-bin, to show that only4.1.1is installed:I can attest that downgrading app-builder-bin to 4.0.0 works:
cd node_modules/builder-utilnpm install app-builder-bin@4.0.0@mmaietta Build fails after applying patch:
packager.compressionisnormalSame problem in v23.0.1 System: Ubuntu 18.10
Alert link: https://github.com/AppImage/AppImageKit/wiki/FUSE