nu@0.102.0: Add shortcuts and purge uninstall (#6443)

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
This commit is contained in:
Olav Rønnestad Birkeland 2025-02-14 13:18:50 +01:00 committed by GitHub
parent cc3fff79ec
commit dbd55d7dfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,26 @@
} }
}, },
"bin": "nu.exe", "bin": "nu.exe",
"shortcuts": [
[
"nu.exe",
"Nushell",
"--execute \"cd ~\""
]
],
"post_uninstall": [
"if ($purge) {",
" $Directories = [string[]](",
" [System.IO.Path]::Combine($env:APPDATA,'nushell'),",
" [System.IO.Path]::Combine($env:LOCALAPPDATA,'nushell')",
" )",
" $Directories.ForEach{",
" if ([System.IO.Directory]::Exists($_)) {",
" $null = [System.IO.Directory]::Delete($_,$true)",
" }",
" }",
"}"
],
"checkver": { "checkver": {
"github": "https://github.com/nushell/nushell" "github": "https://github.com/nushell/nushell"
}, },
@ -25,6 +45,9 @@
"arm64": { "arm64": {
"url": "https://github.com/nushell/nushell/releases/download/$version/nu-$version-aarch64-pc-windows-msvc.zip" "url": "https://github.com/nushell/nushell/releases/download/$version/nu-$version-aarch64-pc-windows-msvc.zip"
} }
},
"hash": {
"url": "$baseurl/SHA256SUMS"
} }
} }
} }