Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Test an Electron built snap package
Giacomo Lombardi
Giacomo Lombardi

Posted on

     

Test an Electron built snap package

Context

Electron is a very powerful tool to develop cross-platform apps. It also simplify the building process thanks to theelectron-builder that targets Windows, MacOS and Linux.

Linux builds have many choices,rpm anddeb are the most common ones as they target Debian and Red-Hat distros.

In 2014 Canonical started to develop a new package manager,snap that now is supported by all main distributions.

One release to rule them all
Enter fullscreen modeExit fullscreen mode

The electron-builder creates a.snap file, but it is not executable.


Test the .snap file

A snap file is basically a single compressed filesystem using SquashFS. In order to test it we need to mount/uncompress the file.

1) unpack the snap file:unsquashfs -d /tmp/ <folder that will be created> <.snap file>
2) move to the newly created folder with unpacked data
3) the app should be in the root, just execute it

Note: i choose /tmp folder but anyone can choose where to unpack the snap file


Try a snap file is really really easy but nowhere I found how to do it, hope that this short post will help you.

Maybe more posts about snap will follow

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Assisi, Italy
  • Work
    Software engineer
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp