Olav Rønnestad Birkeland dbd55d7dfa
nu@0.102.0: Add shortcuts and purge uninstall (#6443)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2025-02-14 20:18:50 +08:00

54 lines
1.8 KiB
JSON

{
"version": "0.102.0",
"description": "A modern shell written in Rust",
"homepage": "https://www.nushell.sh",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/nushell/nushell/releases/download/0.102.0/nu-0.102.0-x86_64-pc-windows-msvc.zip",
"hash": "5fd557a25685705170329384e5782769edd44390c33f9225a9518618fc19ab8e"
},
"arm64": {
"url": "https://github.com/nushell/nushell/releases/download/0.102.0/nu-0.102.0-aarch64-pc-windows-msvc.zip",
"hash": "b9afcb97ce6ed4c95c3afbcff053f6807458f0bd1cd7818a6a2f30ce3f6e82fc"
}
},
"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": {
"github": "https://github.com/nushell/nushell"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/nushell/nushell/releases/download/$version/nu-$version-x86_64-pc-windows-msvc.zip"
},
"arm64": {
"url": "https://github.com/nushell/nushell/releases/download/$version/nu-$version-aarch64-pc-windows-msvc.zip"
}
},
"hash": {
"url": "$baseurl/SHA256SUMS"
}
}
}