From c19eb647c4ce9674f7a996f3e81a27b85461f52a Mon Sep 17 00:00:00 2001 From: "Lockszmith (@VAST)" Date: Mon, 17 Mar 2025 17:37:09 -0400 Subject: [PATCH] Added bsw on macos --- _home.macos/.chezmoiexternal.yaml.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_home.macos/.chezmoiexternal.yaml.tmpl b/_home.macos/.chezmoiexternal.yaml.tmpl index 417e3d0..fd4adcb 100644 --- a/_home.macos/.chezmoiexternal.yaml.tmpl +++ b/_home.macos/.chezmoiexternal.yaml.tmpl @@ -44,6 +44,18 @@ {{- end -}} {{- end -}} +{{- with $repo := "bitwarden/sdk-sm" -}} +{{- with $version := trimPrefix "bws-v" (gitHubReleases "bitwarden/sdk-sm" | toJson | fromJson | jq "map(select(.tag_name | startswith(\"bws-v\")))[0] | .tag_name" | first ) -}} +{{- $_ := set $externals ".local/bin/bws" (dict + "type" "archive-file" + "url" (printf "https://github.com/%s/releases/download/bws-v%s/bws-%s-%s.zip" $repo $version $myArch $version) + "path" "bws" + "executable" true + "refreshPeriod" $defaultRefresh +) -}} +{{- end -}} +{{- end -}} + {{ $myArch = "darwin_arm64" }} {{- with $repo := "hickford/git-credential-oauth" -}}