From a602ee2758a2501567985938e44326ceed39e37e Mon Sep 17 00:00:00 2001 From: Jonathan Hope Date: Sat, 16 Dec 2023 08:43:48 -0800 Subject: [PATCH] feat: winget (#17) --- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 49 +++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6a7026..86c9c2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,4 +27,4 @@ jobs: shell: nix develop --command bash -e {0} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} + WINGET_AUTH_TOKEN: ${{ secrets.WINGET_AUTH_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 896e48f..cd7e8fe 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -246,27 +246,32 @@ snapcrafts: write: - $HOME/.config/chromium/NativeMessagingHosts -chocolateys: - - name: armaria - owners: Jonathan Hope - authors: Jonathan Hope - title: Armaria - project_url: https://github.com/JonathanHope/armaria - url_template: "https://github.com/JonathanHope/armaria/releases/download/{{ .Tag }}/{{ .ArtifactName }}" - icon_url: "https://github.com/JonathanHope/armaria/blob/main/art/cabinet-light-128.svg" - copyright: Jonathan Hope - license_url: https://github.com/JonathanHope/armaria/blob/main/LICENSE - require_license_acceptance: false - project_source_url: https://github.com/JonathanHope/armaria - docs_url: https://github.com/JonathanHope/armaria/blob/main/README.org - bug_tracker_url: https://github.com/JonathanHope/armaria/issues - tags: "bookmarks" - summary: Armaria is a fast, open, and local first bookmarks manager . - description: | - Armaria is a FOSS bookmarks manager that keeps all of your local bookmarks in a SQLite database. You can use many different frontends to manage your bookmarks including browsers, and back them up and/or sync them however you see fit. - release_notes: "https://github.com/JonathanHope/armaria/releases/tag/{{ .Tag }}" - source_repo: "https://push.chocolatey.org/" +winget: + - name: Armaria + publisher: Jonathan Hope + short_description: Armaria is a fast, open, and local first bookmarks manager. + license: "mit" + publisher_url: https://github.com/JonathanHope/armaria + publisher_support_url: https://github.com/JonathanHope/armaria/issues/new + package_identifier: Armaria.Armaria ids: - armaria-windows-archive - api_key: "{{ .Env.CHOCOLATEY_API_KEY }}" - skip_publish: true + url_template: "https://githu1b.com/JonathanHope/armaria/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + path: manifests/a/Armaria/Armaria/{{ .Tag }} + commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}" + homepage: https://github.com/JonathanHope/armaria + description: Armaria is a FOSS bookmarks manager that keeps all of your local bookmarks in a SQLite database. You can use many different frontends to manage your bookmarks including browsers, and back them up and/or sync them however you see fit. + license_url: https://github.com/JonathanHope/armaria/blob/main/LICENSE + copyright: Jonathan Hope + release_notes: "{{.Changelog}}" + release_notes_url: "https://github.com/JonathanHope/armaria/releases/tag/{{ .Tag }}" + tags: + - bookmarks + commit_author: + name: Jonathan Hope + email: jhope@fastmail.com + repository: + owner: JonathanHope + name: winget-pkgs + branch: "{{.ProjectName}}-{{.Tag}}" + token: "{{ .Env.WINGET_AUTH_TOKEN }}"