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

Distribute as a snap? #48

Open
artivis opened this issue Dec 29, 2021 · 1 comment
Open

Distribute as a snap? #48

artivis opened this issue Dec 29, 2021 · 1 comment

Comments

@artivis
Copy link

artivis commented Dec 29, 2021

Hi,

Would you consider distributing this CLI tool as a snap?
This would make it much simpler to install on a bunch of distros, e.g.

snap install gotify-cli
...
gotify-cli push "Hello World"

I've worked out a minimal snapcraft yaml file (assuming it is included in this repo as snap/snapcraft.yaml):

name: gotify-cli
summary: A command line interface for pushing messages to gotify/server.
description: |
  Gotify-CLI is a command line client for pushing messages to gotify/server.

version: git
grade: stable
base: core20

confinement: strict

apps:
  gotify-cli:
    command: bin/cli
    plugs: [network]

parts:
  gotify-cli:
    plugin: go
    source: .

This was enough for me to build it locally, install it and test the init/config/push functionalities. The version command only spits unknowns tho. Furthermore some of the proposed path for the config file are most likely not exposed by default to the snap.

@jmattheis
Copy link
Member

Sounds like a good idea, maybe it would be smart to use goreleaser as it already has functionality to create snap releases https://goreleaser.com/customization/snapcraft/

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

No branches or pull requests

2 participants