electron-builder: Compressor "lzo" is not supported!

  • Electron-Builder Version: 23.2.0
  • Node Version: 16.14.2
  • Electron Version: 19.0.4
  • Electron Type (current, beta, nightly): current
  • Target: linux snap x64

If I add this setting to electron-builder.yml:

snap:
  compression: lzo

Then the build fails with:

  ⨯ cannot execute  cause=exit status 1
                    errorOut=/home/runner/.cache/electron-builder/appimage/appimage-12.0.1/linux-x64/mksquashfs: Compressor "lzo" is not supported!
    /home/runner/.cache/electron-builder/appimage/appimage-12.0.1/linux-x64/mksquashfs: Compressors available:
    	gzip (default)
    	xz

Either this is a bug, or the documentation is incorrect at https://www.electron.build/configuration/snap.html which states:

compression “xz” | “lzo” | “undefined” - Sets the compression type for the snap. Can be xz, lzo, or null.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Thanks for the tip @mmaietta!

The env vars do work! But the size of the package goes up 30% so xz seems like the way to go unless decompression time is the only focus.