Skip to content

Commit

Permalink
mise: More portable manifest setup using a persist dir and mise inter…
Browse files Browse the repository at this point in the history
…nal env vars

Included manifest changes suggested by @chawyehsu in PR ScoopInstaller#6374 which sets the internal mise configurable env var MISE_DATA_DIR to a directory that scoop persists
  • Loading branch information
ev-dev authored Jan 13, 2025
1 parent 3a7f60a commit ce6b941
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions bucket/mise.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "2025.1.6",
"description": "Dev tools, env vars, task runner",
"homepage": "https://mise.jdx.dev/",
"description": "Polyglot tool version manager and task runner",
"homepage": "https://mise.jdx.dev",
"license": "MIT",
"architecture": {
"64bit": {
Expand All @@ -15,25 +15,11 @@
},
"extract_dir": "mise",
"bin": "bin/mise.exe",
"installer": {
"script": "Add-Path -Path \"$env:LOCALAPPDATA\\mise\\shims\" -Global:$global"
"env_set": {
"MISE_DATA_DIR": "$dir\\mise"
},
"uninstaller": {
"script": "Remove-Path -Path \"$env:LOCALAPPDATA\\mise\\shims\" -Global:$global"
},
"post_uninstall": [
"if ($purge) {",
" $Directories = [string[]](",
" ('{0}\\mise' -f $env:LOCALAPPDATA),",
" ('{0}\\Temp\\mise' -f $env:LOCALAPPDATA)",
" )",
" $Directories.ForEach{",
" if (Test-Path -Path $_ -PathType 'Container') {",
" $null = Remove-Item -Path $_ -Recurse -Force",
" }",
" }",
"}"
],
"env_add_path": "mise\\shims",
"persist": "mise",
"checkver": {
"github": "https://github.com/jdx/mise"
},
Expand Down

0 comments on commit ce6b941

Please sign in to comment.