Skip to content

Commit 9da1ba8

Browse files
committed
fix: wrong scoop config
1 parent 70906c7 commit 9da1ba8

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- '**.pi'
1212
- '**/Kagari.*'
1313
- 'codecov.yml'
14+
- 'plc.scoop'
1415

1516
concurrency:
1617
group: ${{ github.workflow }}-${{ github.ref }}

plc.scoop

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"version": "{0}",
33
"homepage": "https://lang.pivotstudio.cn",
44
"license": "MIT",
5-
"description": "Pivot Lang Compiler and language server",
5+
"description": "Pivot Lang Compiler",
66
"bin": [
7-
"plc.exe"
7+
"win64\\plc.exe"
88
],
99
"architecture": {{
1010
"64bit": {{
@@ -13,12 +13,14 @@
1313
"sha256": "{2}"
1414
}}
1515
}},
16-
"env_add_path": [
17-
"$dir"
18-
],
1916
"post_install": [
20-
"tar xvf {1}",
2117
"setx KAGARI_LIB_ROOT \"$dir\\win64\\planglib\"",
22-
"setx PL_ROOT \"$dir\\win64\""
18+
"setx PL_ROOT \"$dir\\win64\"",
19+
"$env:KAGARI_LIB_ROOT=\"$dir\\win64\\planglib\"",
20+
"$env:PL_ROOT=\"$dir\\win64\""
21+
],
22+
"post_uninstall":[
23+
"[Environment]::SetEnvironmentVariable('KAGARI_LIB_ROOT', $null, 'User')",
24+
"[Environment]::SetEnvironmentVariable('PL_ROOT', $null, 'User')"
2325
]
2426
}}

0 commit comments

Comments
 (0)