Skip to content

Commit ce6b941

Browse files
authored
mise: More portable manifest setup using a persist dir and mise internal env vars
Included manifest changes suggested by @chawyehsu in PR #6374 which sets the internal mise configurable env var MISE_DATA_DIR to a directory that scoop persists
1 parent 3a7f60a commit ce6b941

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

bucket/mise.json

+6-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": "2025.1.6",
3-
"description": "Dev tools, env vars, task runner",
4-
"homepage": "https://mise.jdx.dev/",
3+
"description": "Polyglot tool version manager and task runner",
4+
"homepage": "https://mise.jdx.dev",
55
"license": "MIT",
66
"architecture": {
77
"64bit": {
@@ -15,25 +15,11 @@
1515
},
1616
"extract_dir": "mise",
1717
"bin": "bin/mise.exe",
18-
"installer": {
19-
"script": "Add-Path -Path \"$env:LOCALAPPDATA\\mise\\shims\" -Global:$global"
18+
"env_set": {
19+
"MISE_DATA_DIR": "$dir\\mise"
2020
},
21-
"uninstaller": {
22-
"script": "Remove-Path -Path \"$env:LOCALAPPDATA\\mise\\shims\" -Global:$global"
23-
},
24-
"post_uninstall": [
25-
"if ($purge) {",
26-
" $Directories = [string[]](",
27-
" ('{0}\\mise' -f $env:LOCALAPPDATA),",
28-
" ('{0}\\Temp\\mise' -f $env:LOCALAPPDATA)",
29-
" )",
30-
" $Directories.ForEach{",
31-
" if (Test-Path -Path $_ -PathType 'Container') {",
32-
" $null = Remove-Item -Path $_ -Recurse -Force",
33-
" }",
34-
" }",
35-
"}"
36-
],
21+
"env_add_path": "mise\\shims",
22+
"persist": "mise",
3723
"checkver": {
3824
"github": "https://github.com/jdx/mise"
3925
},

0 commit comments

Comments
 (0)