Skip to content

Added snap (snapcraft) generation file #9

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

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

Conversation

simos
Copy link

@simos simos commented Nov 27, 2017

Snaps are installation packages similar to .deb, .rpm, flatpack, etc.
Snaps are used on Ubuntu and several other Linux distributions.

Here is the necessary file to generate a snap package for stacks-cli.
To generate the .snap installation package, install the snapcraft utility.
Then, run
snapcraft
The output is

Preparing to build stacks-cli 
Building stacks-cli 
Staging stacks-cli 
Priming stacks-cli 
Snapping 'stacks-cli' -                                                                                                                                                                              
Snapped stacks-cli_commit-29baf94_amd64.snap

You can then install the snap file as a developer with

snap install --devmode stacks-cli_commit-29baf94_amd64.snap

To publish the snap of stacks-cli, run the following:

snapcraft login      # Create an account if you do not have one, at https://login.launchpad.net/
snapcraft register stacks-cli    # Here you become the owner of the 'stacks-cli' name as snap package.
snapcraft push stacks-cli_commit-29baf94_amd64.snap   # Upload the snap to the store.
#   It takes a few seconds to get the app autoapproved (or see https://myapps.developer.ubuntu.com/ )
snapcraft release stacks-cli 1 stable    # Releases the snap package for anyone to install
snap install stacks-cli      # Here is how anyone can then install the utility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant