From 4d30014f7dff0d6c95547986650dfb5ff1908a3e Mon Sep 17 00:00:00 2001 From: Lars Martin Date: Mon, 24 Oct 2022 00:46:49 +0200 Subject: [PATCH 1/3] feat: add bitwarden/clients [bitwarden/clients](https://github.com/bitwarden/clients): Bitwarden CLI ```console $ aqua g -i bitwarden/clients ``` ## How to confirm if this package works well Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well. Please confirm if this package works well yourself as much as possible. Command and output ```console $ ``` If files such as configuration file are needed, please share them. ``` ``` Reference - --- pkgs/bitwarden/clients/pkg.yaml | 2 ++ pkgs/bitwarden/clients/registry.yaml | 12 ++++++++++++ registry.yaml | 11 +++++++++++ 3 files changed, 25 insertions(+) create mode 100644 pkgs/bitwarden/clients/pkg.yaml create mode 100644 pkgs/bitwarden/clients/registry.yaml diff --git a/pkgs/bitwarden/clients/pkg.yaml b/pkgs/bitwarden/clients/pkg.yaml new file mode 100644 index 00000000000..13ff2c28cf8 --- /dev/null +++ b/pkgs/bitwarden/clients/pkg.yaml @@ -0,0 +1,2 @@ +packages: + - name: bitwarden/clients@cli-v2022.10.0 diff --git a/pkgs/bitwarden/clients/registry.yaml b/pkgs/bitwarden/clients/registry.yaml new file mode 100644 index 00000000000..627c3d4b3e6 --- /dev/null +++ b/pkgs/bitwarden/clients/registry.yaml @@ -0,0 +1,12 @@ +packages: + - type: github_release + repo_owner: bitwarden + repo_name: clients + asset: 'bw-{{.OS}}-{{trimPrefix "cli-v" .Version}}.zip' + version_filter: 'Version startsWith "cli-"' + files: + - name: bw + src: bw + description: Bitwarden CLI + replacements: + darwin: macos diff --git a/registry.yaml b/registry.yaml index d07cef8a0d8..9fb37073a88 100644 --- a/registry.yaml +++ b/registry.yaml @@ -2941,6 +2941,17 @@ packages: pattern: checksum: ^(\b[A-Fa-f0-9]{64}\b) file: "^\\b[A-Fa-f0-9]{64}\\b\\s+(\\S+)$" + - type: github_release + repo_owner: bitwarden + repo_name: clients + asset: 'bw-{{.OS}}-{{trimPrefix "cli-v" .Version}}.zip' + version_filter: 'Version startsWith "cli-"' + files: + - name: bw + src: bw + description: Bitwarden CLI + replacements: + darwin: macos - type: github_release repo_owner: blacknon repo_name: hwatch From e68f40ce4feba7ff8c900f684d04fadaf4376542 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Mon, 24 Oct 2022 09:28:01 +0900 Subject: [PATCH 2/3] style(bitwarden/clients): remove unneeded quotes --- pkgs/bitwarden/clients/registry.yaml | 4 ++-- registry.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/bitwarden/clients/registry.yaml b/pkgs/bitwarden/clients/registry.yaml index 627c3d4b3e6..b80fccdb28a 100644 --- a/pkgs/bitwarden/clients/registry.yaml +++ b/pkgs/bitwarden/clients/registry.yaml @@ -2,8 +2,8 @@ packages: - type: github_release repo_owner: bitwarden repo_name: clients - asset: 'bw-{{.OS}}-{{trimPrefix "cli-v" .Version}}.zip' - version_filter: 'Version startsWith "cli-"' + asset: bw-{{.OS}}-{{trimPrefix "cli-v" .Version}}.zip + version_filter: Version startsWith "cli-" files: - name: bw src: bw diff --git a/registry.yaml b/registry.yaml index 9fb37073a88..d2eade61859 100644 --- a/registry.yaml +++ b/registry.yaml @@ -2944,8 +2944,8 @@ packages: - type: github_release repo_owner: bitwarden repo_name: clients - asset: 'bw-{{.OS}}-{{trimPrefix "cli-v" .Version}}.zip' - version_filter: 'Version startsWith "cli-"' + asset: bw-{{.OS}}-{{trimPrefix "cli-v" .Version}}.zip + version_filter: Version startsWith "cli-" files: - name: bw src: bw From 049a15ffc90aea39cb8cada162ca57002a57d864 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Mon, 24 Oct 2022 09:31:35 +0900 Subject: [PATCH 3/3] fix(bitwarden/clients): set checksum configuration --- pkgs/bitwarden/clients/registry.yaml | 5 +++++ registry.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pkgs/bitwarden/clients/registry.yaml b/pkgs/bitwarden/clients/registry.yaml index b80fccdb28a..bd9d5433c67 100644 --- a/pkgs/bitwarden/clients/registry.yaml +++ b/pkgs/bitwarden/clients/registry.yaml @@ -10,3 +10,8 @@ packages: description: Bitwarden CLI replacements: darwin: macos + checksum: + type: github_release + asset: bw-{{.OS}}-sha256-{{trimPrefix "cli-v" .Version}}.txt + file_format: raw + algorithm: sha256 diff --git a/registry.yaml b/registry.yaml index d2eade61859..3c9b860b807 100644 --- a/registry.yaml +++ b/registry.yaml @@ -2952,6 +2952,11 @@ packages: description: Bitwarden CLI replacements: darwin: macos + checksum: + type: github_release + asset: bw-{{.OS}}-sha256-{{trimPrefix "cli-v" .Version}}.txt + file_format: raw + algorithm: sha256 - type: github_release repo_owner: blacknon repo_name: hwatch