Skip to content

Commit da6bf83

Browse files
author
{{ .githubUserName }}
committed
proto: Modify the exposure of command by env path which is same as native install script.
1 parent d24104c commit da6bf83

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

bucket/proto.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@
99
"hash": "fdf3b65bb60930a7f454cb164ea86040ea28a62b8ee586b67672b9a145c01dc7"
1010
}
1111
},
12-
"bin": [
13-
"proto.exe",
14-
"proto-shim.exe"
15-
],
12+
"installer": {
13+
"script": [
14+
"# Create bin directory",
15+
"New-Item -ItemType Directory -Force -Path \"$dir\\bin\" | Out-Null",
16+
"",
17+
"# Move proto binaries into bin",
18+
"Move-Item \"$dir\\proto.exe\" \"$dir\\bin\\proto.exe\" -Force",
19+
"if (Test-Path \"$dir\\proto-shim.exe\") {",
20+
" Move-Item \"$dir\\proto-shim.exe\" \"$dir\\bin\\proto-shim.exe\" -Force",
21+
"}"
22+
]
23+
},
1624
"env_set": {
1725
"PROTO_HOME": "$dir"
1826
},
27+
"env_add_path": "bin",
1928
"checkver": {
2029
"github": "https://github.com/moonrepo/proto"
2130
},

0 commit comments

Comments
 (0)