mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
nu@0.102.0: Add shortcuts and purge uninstall (#6443)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
This commit is contained in:
parent
cc3fff79ec
commit
dbd55d7dfa
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user