1+ {
2+ "version" : " 0.54.1" ,
3+ "description" : " Proto is a pluggable version manager, a unified toolchain." ,
4+ "homepage" : " https://moonrepo.dev/docs/proto" ,
5+ "license" : " MIT" ,
6+ "architecture" : {
7+ "64bit" : {
8+ "url" : " https://github.com/moonrepo/proto/releases/download/v0.54.1/proto_cli-x86_64-pc-windows-msvc.zip" ,
9+ "hash" : " 77e5cf3b6ee89882d7f9b8004a664ece33ab36d0634ee285e4886f64d84e261c"
10+ }
11+ },
12+ "pre_install" : [
13+ " $protoHome = if ($env:PROTO_HOME) { $env:PROTO_HOME } else { \" $HOME\\ .proto\" }" ,
14+ " if (!(Test-Path \" $protoHome\\ bin\" )) { New-Item -ItemType Directory -Force -Path \" $protoHome\\ bin\" | Out-Null }"
15+ ],
16+ "installer" : {
17+ "script" : [
18+ " $protoHome = if ($env:PROTO_HOME) { $env:PROTO_HOME } else { \" $HOME\\ .proto\" }" ,
19+ " Move-Item \" $dir\\ *.exe\" -Destination \" $protoHome\\ bin\" -Force" ,
20+ " & \" $protoHome\\ bin\\ proto.exe\" setup --yes --no-modify-profile 2>&1 | Out-Null"
21+ ]
22+ },
23+ "uninstaller" : {
24+ "script" : [
25+ " $protoHome = if ($env:PROTO_HOME) { $env:PROTO_HOME } else { \" $HOME\\ .proto\" }" ,
26+ " " ,
27+ " # Remove proto paths from PATH" ,
28+ " $userPath = [Environment]::GetEnvironmentVariable('PATH', 'User')" ,
29+ " $binDir = \" $protoHome\\ bin\" " ,
30+ " $shimsDir = \" $protoHome\\ shims\" " ,
31+ " $paths = $userPath -split ';' | Where-Object { $_ -and $_ -ne $binDir -and $_ -ne $shimsDir }" ,
32+ " [Environment]::SetEnvironmentVariable('PATH', ($paths -join ';'), 'User')" ,
33+ " " ,
34+ " # Remove PROTO_HOME directory" ,
35+ " if (Test-Path $protoHome) { Remove-Item -Path $protoHome -Recurse -Force }"
36+ ]
37+ },
38+ "checkver" : {
39+ "github" : " https://github.com/moonrepo/proto"
40+ },
41+ "autoupdate" : {
42+ "architecture" : {
43+ "64bit" : {
44+ "url" : " https://github.com/moonrepo/proto/releases/download/v$version/proto_cli-x86_64-pc-windows-msvc.zip"
45+ }
46+ },
47+ "hash" : {
48+ "url" : " $url.sha256" ,
49+ "regex" : " ([A-Fa-f0-9]{64})"
50+ }
51+ }
52+ }
0 commit comments