From d24104cb4331fc1705b5693a3a970efbbada00cf Mon Sep 17 00:00:00 2001 From: "{{ .githubUserName }}" <{{ .gmail }}> Date: Wed, 17 Sep 2025 21:14:16 +0800 Subject: [PATCH 1/5] 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/5] 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/5] 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 ee8634a5e9211778150f79aeaa9157040b836038 Mon Sep 17 00:00:00 2001 From: "{{ .githubUserName }}" <{{ .gmail }}> Date: Wed, 17 Sep 2025 23:16:19 +0800 Subject: [PATCH 4/5] vmr: Add version 0.7.5 --- bucket/vmr.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 bucket/vmr.json diff --git a/bucket/vmr.json b/bucket/vmr.json new file mode 100644 index 00000000000000..2464617c935ead --- /dev/null +++ b/bucket/vmr.json @@ -0,0 +1,30 @@ +{ + "version": "0.7.5", + "description": "VMR is a simple, cross-platform, and well-designed version manager for multiple sdks and tools.", + "homepage": "https://vdocs.vmr.dpdns.org", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://github.com/gvcgo/version-manager/releases/download/v0.7.5/vmr_windows-amd64.zip", + "hash": "8EEE6C8B2E8AF68184239CBC5FA3F2A49D1352B4E9E28A74206C5B374A42EEF7" + }, + "arm64": { + "url": "https://github.com/gvcgo/version-manager/releases/download/v0.7.5/vmr_windows-arm64.zip", + "hash": "3D9FEBAB6A3BB68808F098A65FD26637D5B6FE402ECE258D79FC124104C14725" + } + }, + "bin": "vmr.exe", + "checkver": { + "github": "https://github.com/gvcgo/version-manager" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/gvcgo/version-manager/releases/download/v$version/vmr_windows-amd64.zip" + }, + "arm64": { + "url": "https://github.com/gvcgo/version-manager/releases/download/v$version/vmr_windows-arm64.zip" + } + } + } +} \ No newline at end of file From ce2a5aeefd00a1ef39fd45b1fa098455e538066d Mon Sep 17 00:00:00 2001 From: Nostalgia Date: Wed, 17 Sep 2025 23:31:42 +0800 Subject: [PATCH 5/5] vmr: Delete bucket/proto.json --- bucket/proto.json | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 bucket/proto.json diff --git a/bucket/proto.json b/bucket/proto.json deleted file mode 100644 index a22c57ea352fad..00000000000000 --- a/bucket/proto.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "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://github.com/moonrepo/proto/releases/download/v0.52.5/proto_cli-x86_64-pc-windows-msvc.zip", - "hash": "fdf3b65bb60930a7f454cb164ea86040ea28a62b8ee586b67672b9a145c01dc7" - } - }, - "persist": [ - "bin" - ], - "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", - "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