diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 02893643ba6b6cba19a5cc5b76e5040ff7c0654f..4cbfea76e1a4526130726240bba109a4979c8ffa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,3 +46,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 8ae6dae69e98a179560522a8f78b5f63495c293e..baaf496382b59685c33a2330708cc6b7694380e3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -105,27 +105,6 @@ brews: # This tells Homebrew to just install the binary. install: | bin.install "email-cli" -nfpms: - - # ID of the nfpm config, must be unique. - id: email-cli-btea - # Name of the package. - package_name: email-cli - # Version of the package. - # Defaults to the project's version. - version: "{{ .Version }}" - # Maintainer of the package. - maintainer: "Drew Smirnoff " - # Description of the package. - description: "A beautiful and functional email client for your terminal." - # Homepage of the package. - homepage: "https://github.com/andrinoff/email-cli" - # License of the package. - license: MIT - # Formats to generate. - formats: - - deb # For apt - - rpm # For yum/dnf - # Files to include in the package. - contents: - - src: ./email-cli - dst: /usr/local/bin/email-cli +snapcrafts: + - name: email-cli + publish: true diff --git a/snapcraft.yml b/snapcraft.yml new file mode 100644 index 0000000000000000000000000000000000000000..f06e0711700c7fe02fb849b1775747c11255a467 --- /dev/null +++ b/snapcraft.yml @@ -0,0 +1,23 @@ +name: email-cli +base: core22 # The base snap for a modern Ubuntu LTS +version: "0.1" # This will be replaced by GoReleaser or can be set manually +summary: A beautiful and functional email client for your terminal. +description: | + A beautiful and functional email client for your terminal, built with Go and the charming Bubble Tea TUI library. + Never leave your command line to check your inbox or send an email again! + +grade: stable # must be 'stable' to release into candidate, stable channels +confinement: strict # use 'strict' confinement for security + +apps: + email-cli: + command: bin/email-cli + plugs: + - network # Required for network access + - home # To access the user's home directory for config files + +parts: + email-cli: + plugin: go + source: . + go-importpath: github.com/andrinoff/email-cli