Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snap packaging option #694

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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>

@Rokt33r Rokt33r added this to In progress in Dev kanban Nov 28, 2020
@Rokt33r Rokt33r moved this from In progress to Waiting for review in Dev kanban Nov 28, 2020
@Komediruzecki Komediruzecki self-assigned this Nov 28, 2020
@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
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
No open projects
Dev kanban
  
Waiting for review
Development

Successfully merging this pull request may close these issues.

None yet

1 participant