From d24104cb4331fc1705b5693a3a970efbbada00cf Mon Sep 17 00:00:00 2001 From: "{{ .githubUserName }}" <{{ .gmail }}> Date: Wed, 17 Sep 2025 21:14:16 +0800 Subject: [PATCH 1/4] proto: Add version 0.52.5 --- bucket/proto.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bucket/proto.json diff --git a/bucket/proto.json b/bucket/proto.json new file mode 100644 index 00000000000000..62a5c3e305ff61 --- /dev/null +++ b/bucket/proto.json @@ -0,0 +1,32 @@ +{ + "version": "0.52.5", + "description": "Proto is a pluggable version manager, a unified toolchain.", + "homepage": "https://moonrepo.dev/docs/proto", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://gh-proxy.com/https://github.com/moonrepo/proto/releases/download/v0.52.5/proto_cli-x86_64-pc-windows-msvc.zip", + "hash": "fdf3b65bb60930a7f454cb164ea86040ea28a62b8ee586b67672b9a145c01dc7" + } + }, + "bin": [ + "proto.exe", + "proto-shim.exe" + ], + "env_set": { + "PROTO_HOME": "$dir" + }, + "checkver": { + "github": "https://github.com/moonrepo/proto" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/moonrepo/proto/releases/download/v$version/proto_cli-x86_64-pc-windows-msvc.zip" + } + }, + "hash": { + "url": "$baseurl/proto_cli-x86_64-pc-windows-msvc.zip.sha256" + } + } +} \ No newline at end of file From afa798ffd7438a6c292bd05a541aa9b9bbfdacaa Mon Sep 17 00:00:00 2001 From: "{{ .githubUserName }}" <{{ .gmail }}> Date: Wed, 17 Sep 2025 22:38:03 +0800 Subject: [PATCH 2/4] proto: Modify the exposure of command by env path which is same as native install script. --- bucket/proto.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/bucket/proto.json b/bucket/proto.json index 62a5c3e305ff61..4da30c30858b83 100644 --- a/bucket/proto.json +++ b/bucket/proto.json @@ -5,17 +5,26 @@ "license": "MIT", "architecture": { "64bit": { - "url": "https://gh-proxy.com/https://github.com/moonrepo/proto/releases/download/v0.52.5/proto_cli-x86_64-pc-windows-msvc.zip", + "url": "https://github.com/moonrepo/proto/releases/download/v0.52.5/proto_cli-x86_64-pc-windows-msvc.zip", "hash": "fdf3b65bb60930a7f454cb164ea86040ea28a62b8ee586b67672b9a145c01dc7" } }, - "bin": [ - "proto.exe", - "proto-shim.exe" - ], + "installer": { + "script": [ + "# Create bin directory", + "New-Item -ItemType Directory -Force -Path \"$dir\\bin\" | Out-Null", + "", + "# Move proto binaries into bin", + "Move-Item \"$dir\\proto.exe\" \"$dir\\bin\\proto.exe\" -Force", + "if (Test-Path \"$dir\\proto-shim.exe\") {", + " Move-Item \"$dir\\proto-shim.exe\" \"$dir\\bin\\proto-shim.exe\" -Force", + "}" + ] + }, "env_set": { "PROTO_HOME": "$dir" }, + "env_add_path": "bin", "checkver": { "github": "https://github.com/moonrepo/proto" }, From 074e4e41056d129b7bf4157d809bcd6f75c347a0 Mon Sep 17 00:00:00 2001 From: "{{ .githubUserName }}" <{{ .gmail }}> Date: Wed, 17 Sep 2025 22:53:45 +0800 Subject: [PATCH 3/4] proto: Change to persist dir with link to adapt proto file structure --- bucket/proto.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bucket/proto.json b/bucket/proto.json index 4da30c30858b83..a22c57ea352fad 100644 --- a/bucket/proto.json +++ b/bucket/proto.json @@ -9,20 +9,23 @@ "hash": "fdf3b65bb60930a7f454cb164ea86040ea28a62b8ee586b67672b9a145c01dc7" } }, + "persist": [ + "bin" + ], "installer": { "script": [ "# Create bin directory", - "New-Item -ItemType Directory -Force -Path \"$dir\\bin\" | Out-Null", + "New-Item -ItemType Directory -Force -Path \"$persist_dir\\bin\" | Out-Null", "", "# Move proto binaries into bin", - "Move-Item \"$dir\\proto.exe\" \"$dir\\bin\\proto.exe\" -Force", + "Move-Item \"$dir\\proto.exe\" \"$persist_dir\\bin\\proto.exe\" -Force", "if (Test-Path \"$dir\\proto-shim.exe\") {", - " Move-Item \"$dir\\proto-shim.exe\" \"$dir\\bin\\proto-shim.exe\" -Force", + " Move-Item \"$dir\\proto-shim.exe\" \"$persist_dir\\bin\\proto-shim.exe\" -Force", "}" ] }, "env_set": { - "PROTO_HOME": "$dir" + "PROTO_HOME": "$persist_dir" }, "env_add_path": "bin", "checkver": { From c864c22079414437466dc21fc76af94c6830b740 Mon Sep 17 00:00:00 2001 From: lvyuemeng Date: Mon, 17 Nov 2025 23:03:25 +0800 Subject: [PATCH 4/4] feat: follow rabbits --- bucket/proto.json | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/bucket/proto.json b/bucket/proto.json index a22c57ea352fad..db06c444f9ccc9 100644 --- a/bucket/proto.json +++ b/bucket/proto.json @@ -5,29 +5,18 @@ "license": "MIT", "architecture": { "64bit": { - "url": "https://github.com/moonrepo/proto/releases/download/v0.52.5/proto_cli-x86_64-pc-windows-msvc.zip", + "url": "https://gh-proxy.org/https://github.com/moonrepo/proto/releases/download/v0.52.5/proto_cli-x86_64-pc-windows-msvc.zip", "hash": "fdf3b65bb60930a7f454cb164ea86040ea28a62b8ee586b67672b9a145c01dc7" } }, - "persist": [ - "bin" + "bin": [ + "proto.exe", + "proto-shim.exe" ], - "installer": { - "script": [ - "# Create bin directory", - "New-Item -ItemType Directory -Force -Path \"$persist_dir\\bin\" | Out-Null", - "", - "# Move proto binaries into bin", - "Move-Item \"$dir\\proto.exe\" \"$persist_dir\\bin\\proto.exe\" -Force", - "if (Test-Path \"$dir\\proto-shim.exe\") {", - " Move-Item \"$dir\\proto-shim.exe\" \"$persist_dir\\bin\\proto-shim.exe\" -Force", - "}" - ] - }, "env_set": { "PROTO_HOME": "$persist_dir" }, - "env_add_path": "bin", + "env_add_path": "$persist_dir\\bin", "checkver": { "github": "https://github.com/moonrepo/proto" }, @@ -38,7 +27,8 @@ } }, "hash": { - "url": "$baseurl/proto_cli-x86_64-pc-windows-msvc.zip.sha256" + "url": "$url.sha256", + "regex": "([A-Fa-f0-9]{64})" } } } \ No newline at end of file