From 08a944ff7382659ce3365008501564f733b9d026 Mon Sep 17 00:00:00 2001 From: elijahr Date: Fri, 15 Aug 2025 11:35:33 -0500 Subject: [PATCH 1/5] Update list-all --- bin/list-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/list-all b/bin/list-all index 5954ccf..16e7d2b 100755 --- a/bin/list-all +++ b/bin/list-all @@ -8,7 +8,7 @@ function sort_versions() { } list_all_versions() { - git ls-remote --tags --refs https://github.com/99designs/aws-vault.git | + git ls-remote --tags --refs https://github.com/ByteNess/aws-vault.git | grep -o 'refs/tags/.*' | cut -d/ -f3- | sed 's/^v//' From 3667d00570db9a90ea06ab2141018f8218ab0663 Mon Sep 17 00:00:00 2001 From: elijahr Date: Fri, 15 Aug 2025 11:36:26 -0500 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ddc401b..5dd6d7e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # asdf-aws-vault ![GitHub Actions Status](https://github.com/karancode/asdf-aws-vault/workflows/Main%20workflow/badge.svg?branch=main) -[aws-vault](https://github.com/99designs/aws-vault) plugin for [asdf](https://github.com/asdf-vm/asdf) version manager +[aws-vault](https://github.com/ByteNess/aws-vault) plugin for [asdf](https://github.com/asdf-vm/asdf) version manager ## Install From 1c966d631777a6c8c73494685b68144611619256 Mon Sep 17 00:00:00 2001 From: elijahr Date: Fri, 15 Aug 2025 11:37:01 -0500 Subject: [PATCH 3/5] Update install --- bin/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install b/bin/install index e47ea15..bfbda7b 100755 --- a/bin/install +++ b/bin/install @@ -31,9 +31,9 @@ get_download_url() { local version="$1" local platform="$(get_arch)" if [ "$platform" = "darwin" ]; then - echo "https://github.com/99designs/aws-vault/releases/download/v${version}/aws-vault-${platform}-$(get_cpu).dmg" + echo "https://github.com/ByteNess/aws-vault/releases/download/v${version}/aws-vault-${platform}-$(get_cpu).dmg" else - echo "https://github.com/99designs/aws-vault/releases/download/v${version}/aws-vault-${platform}-$(get_cpu)" + echo "https://github.com/ByteNess/aws-vault/releases/download/v${version}/aws-vault-${platform}-$(get_cpu)" fi } From 7e77fe94759fe1df69954985a2847bfb2225d09a Mon Sep 17 00:00:00 2001 From: elijahr Date: Fri, 15 Aug 2025 11:46:15 -0500 Subject: [PATCH 4/5] New install process --- bin/install | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/bin/install b/bin/install index bfbda7b..adf9a56 100755 --- a/bin/install +++ b/bin/install @@ -8,7 +8,11 @@ ASDF_INSTALL_TYPE=${ASDF_INSTALL_TYPE:-version } [ -n "$ASDF_INSTALL_PATH" ] || (>&2 echo 'Missing ASDF_INSTALL_PATH' && exit 1) get_arch() { - uname | tr '[:upper:]' '[:lower:]' + local os="$(uname | tr '[:upper:]' '[:lower:]')" + case "$os" in + 'msys'*|'cygwin'*|'mingw'*) echo "windows";; + *) echo "$os";; + esac } get_cpu() { @@ -30,11 +34,15 @@ get_cpu() { get_download_url() { local version="$1" local platform="$(get_arch)" - if [ "$platform" = "darwin" ]; then - echo "https://github.com/ByteNess/aws-vault/releases/download/v${version}/aws-vault-${platform}-$(get_cpu).dmg" - else - echo "https://github.com/ByteNess/aws-vault/releases/download/v${version}/aws-vault-${platform}-$(get_cpu)" + local cpu="$(get_cpu)" + local filename="aws-vault-${platform}-${cpu}" + + # Add .exe extension for Windows + if [ "$platform" = "windows" ]; then + filename="${filename}.exe" fi + + echo "https://github.com/ByteNess/aws-vault/releases/download/v${version}/${filename}" } install_aws_vault() { @@ -49,17 +57,6 @@ install_aws_vault() { local bin_path="${bin_install_path}/aws-vault" echo "Downloading aws-vault from ${download_url}" if curl -sfL "$download_url" -o "$bin_path"; then - if [[ "$download_url" = *"dmg" ]]; then - # mount - hdiutil attach -nobrowse "$bin_path" -quiet - - # replace dmg with binary - rm -rf "$bin_path" - cp /Volumes/aws-vault/aws-vault "$bin_path" - - # unmount - hdiutil detach /Volumes/aws-vault -quiet - fi chmod +x $bin_path else exit 1 From be50d042c27fcc505eb28dff81672de3aabc4a12 Mon Sep 17 00:00:00 2001 From: elijahr Date: Thu, 21 Aug 2025 19:52:26 -0500 Subject: [PATCH 5/5] Update README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5dd6d7e..bbc2a7d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # asdf-aws-vault -![GitHub Actions Status](https://github.com/karancode/asdf-aws-vault/workflows/Main%20workflow/badge.svg?branch=main) + [aws-vault](https://github.com/ByteNess/aws-vault) plugin for [asdf](https://github.com/asdf-vm/asdf) version manager ## Install ``` -asdf plugin-add aws-vault https://github.com/karancode/asdf-aws-vault.git +asdf plugin-add aws-vault https://github.com/asdf-community/asdf-aws-vault.git asdf install aws-vault ``` @@ -15,5 +15,6 @@ Check out the [asdf documentation](https://asdf-vm.com/guide/getting-started.htm ## Crediits +- Original [asdf-aws-vault](https://github.com/karancode/asdf-aws-vault) plugin by karancode - [asdf-kubectl](https://github.com/asdf-community/asdf-kubectl) plugin - [asdf-plugin-template](https://github.com/asdf-vm/asdf-plugin-template)