Skip to content

Conversation

Komediruzecki
Copy link
Contributor

Add snap packaging option

Add snap packaging with electron-builder
Specified removable-media as additional interface
Specified snap confinement as strict
Fix unused icon in NotePageToolbar

Users should add interface plug to be able to access removable media ("/mnt", "/media" mount points) via snap CLI:
snap connect <snap-name>:<available-plug-name>
For boostnote-next and this additional interface:
snap connect boostnote-next:removable-media

Snap Name should be registered in Snapcraft

  • Via UbuntuOne developer account: https://snapcraft.io/docs/registering-your-app-name
  • Valid names are boostnote, boostnote-next
  • Invalid names: boostnote.next, boostnote_next
  • Because of this, 'executableName' option sets the corrrect name in package.json and no further changes are needed for packaging.

For publishing new versions follow:
https://snapcraft.io/docs/releasing-your-app

snapcraft login
snapcraft upload --release=stable boostnote-next.snap

For developers, you can install it for testing via:
sudo snap install boostnote-next --dangerous --devmode // for devmode (unconfined environment/isolation)
sudo snap install boostnote-next --dangerous // for strict i.e. set in package.json confinment (for testing as users sees the app)

Later use the same snap connect commands to add removable-media interface plug or others (if available)

To run successfully installed snap:
where <snap-name> // where boostnote-next

Run with: /snap/bin/<snap-name>

@Komediruzecki Komediruzecki self-assigned this Nov 28, 2020
@Komediruzecki Komediruzecki force-pushed the feature/snap-packaging branch from 9e3374c to 93475e5 Compare December 5, 2020 09:55
@Komediruzecki Komediruzecki requested a review from Rokt33r December 5, 2020 09:55
@Komediruzecki Komediruzecki force-pushed the feature/snap-packaging branch from 93475e5 to b1773e5 Compare December 9, 2020 16:42
@Komediruzecki Komediruzecki added the awaiting review ❇️ Pull request is awaiting a review. label Dec 10, 2020
Add snap packaging with electron-builder
Specified removable-media as additional interface
Specified snap confinement as strict
Fix unused icon in NotePageToolbar
@Komediruzecki Komediruzecki force-pushed the feature/snap-packaging branch from 243784c to 943926d Compare March 16, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review ❇️ Pull request is awaiting a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant