Skip to content

Commit aaf14dd

Browse files
authored
g@1.8.0: Fix installer, uninstaller field; add env_set field
1 parent c719840 commit aaf14dd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

bucket/g.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@
2323
},
2424
"installer": {
2525
"script": [
26-
"[Environment]::SetEnvironmentVariable('GOROOT', \"$persist_dir\\.cargo\", 'Process')",
27-
"info \"Adding '$envgoroot\\bin' to PATH...\"",
28-
"Add-Path -Path \"$envgoroot\\bin\" -Global:$global"
26+
"[Environment]::SetEnvironmentVariable('GOROOT', \"$env:USERPROFILE\\.g\\go\", 'Process')",
27+
"info \"Adding '$env:GOROOT\\bin' to PATH...\"",
28+
"Add-Path -Path \"$env:GOROOT\\bin\" -Global:$global"
2929
]
3030
},
3131
"uninstaller": {
3232
"script": [
33-
"$envgoroot = \"$env:USERPROFILE\\.g\\go\"",
34-
"if ($env:GOROOT) { $envgoroot = $env:GOROOT }",
35-
"info \"Removing '$envgoroot\\bin' from PATH...\"",
36-
"Remove-Path -Path \"$envgoroot\\bin\" -Global:$global"
33+
"[Environment]::SetEnvironmentVariable('GOROOT', \"$env:USERPROFILE\\.g\\go\", 'Process')",
34+
"info \"Removing '$env:GOROOT\\bin' from PATH...\"",
35+
"Remove-Path -Path \"$env:GOROOT\\bin\" -Global:$global"
3736
]
3837
},
3938
"bin": "g.exe",
39+
"env_set": {
40+
"GOROOT": "$env:USERPROFILE\\.g\\go"
41+
},
4042
"checkver": "github",
4143
"autoupdate": {
4244
"architecture": {

0 commit comments

Comments
 (0)