From 30ea341cd3ec462b2902f12eee971fd2f0e40d5f Mon Sep 17 00:00:00 2001 From: Evan Reed Date: Fri, 17 Jan 2025 08:29:40 -0500 Subject: [PATCH] mise: manifest updated to more portable config (#6453) Co-authored-by: Chawye Hsu --- bucket/mise.json | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/bucket/mise.json b/bucket/mise.json index c2b646b83d..6a90ce2fb1 100644 --- a/bucket/mise.json +++ b/bucket/mise.json @@ -1,6 +1,6 @@ { "version": "2025.1.8", - "description": "Dev tools, env vars, task runner", + "description": "Polyglot tool version manager and task runner", "homepage": "https://mise.jdx.dev/", "license": "MIT", "architecture": { @@ -15,25 +15,21 @@ }, "extract_dir": "mise", "bin": "bin/mise.exe", - "installer": { - "script": "Add-Path -Path \"$env:LOCALAPPDATA\\mise\\shims\" -Global:$global" - }, - "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", - " }", - " }", + "pre_install": [ + "if (!(Test-Path \"$persist_dir\\config.toml\") -and !(Test-Path \"$dir\\config.toml\")) {", + " New-Item -Path \"$dir\\config.toml\" -ItemType File -ea 0 | Out-Null", "}" ], + "env_set": { + "MISE_DATA_DIR": "$dir\\mise", + "MISE_GLOBAL_CONFIG_FILE": "$dir\\config.toml" + }, + "env_add_path": "mise\\shims", + "persist": [ + "mise", + "config.toml" + ], + "notes": "See documentation for notes on configuring your shell: https://mise.jdx.dev/installing-mise.html", "checkver": { "github": "https://github.com/jdx/mise" },