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.

Add support for snapcraft compression top-level key

See original GitHub issue

Snap packages are known for having a very long first startup time. That’s mainly because snaps are compressed squashfs images using XZ algorithm. Recently Canonical made it possible to use LZO algorithm instead of XZ, which significantly improves startup time.

I’d like to ask for electron-builder to support the snapcraft top-level key compression. From https://snapcraft.io/docs/snapcraft-top-level-metadata:

Sets the compression type for the snap. Can be xz or lzo. Defaults to xz when not specified. Snaps are compressed using xz data compression by default. This offers the optimal performance to compression ratio for the majority of snaps. However, there are certain types of snap, such as large desktop applications, that can benefit from using LZO compression. Snaps compressed with lzo are slightly larger but can decompress quicker, reducing the time it takes for freshly installed or refreshed snaps to launch.

More info:

This is related to bitwarden/clients#2609

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ppdcommented, Dec 16, 2021

I think the PR is almost complete. @mmaietta maybe you can have a quick look over the proposed changes sometime soon. It would be great to land this in the near future.

1reaction
om26ercommented, Aug 25, 2021

@pachulo @mmaietta I will take a dig at that during the weekend, will try to propose a fix then

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snapcraft top-level metadata
The top-level keys and values in snapcraft.yaml provide the snap build process, and the store, with the overarching details of a snap.
Read more >
Snapcraft.yaml reference
Snaps are containerised software packages that are simple to create and install. They auto-update and are safe to run. And because they bundle...
Read more >
Snapcraft parts metadata
The parts keys and values in snapcraft.yaml detail how parts are configured and built by the snapcraft command. See Snapcraft top-level metadata and ......
Read more >
Snapcraft.yaml reference - doc
This page arranges the same material found in The snapcraft format as a single page. Name Description name mandatory The identifying name of...
Read more >
The snap format | Snapcraft documentation
Most of the metadata supported by snap.yaml is optional. ... Lines with unknown keys are silently removed from the desktop file on install....
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