diff --git a/bucket/proto.json b/bucket/proto.json new file mode 100644 index 00000000000000..a22c57ea352fad --- /dev/null +++ b/bucket/proto.json @@ -0,0 +1,44 @@ +{ + "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