From dbd55d7dfaa7d6b63eb944984d7f58d5653bb023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20R=C3=B8nnestad=20Birkeland?= <6450056+o-l-a-v@users.noreply.github.com> Date: Fri, 14 Feb 2025 13:18:50 +0100 Subject: [PATCH] nu@0.102.0: Add shortcuts and purge uninstall (#6443) Co-authored-by: Hsiao-nan Cheung --- bucket/nu.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/bucket/nu.json b/bucket/nu.json index fbe171c850..9374afdf2a 100644 --- a/bucket/nu.json +++ b/bucket/nu.json @@ -14,6 +14,26 @@ } }, "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" }, @@ -25,6 +45,9 @@ "arm64": { "url": "https://github.com/nushell/nushell/releases/download/$version/nu-$version-aarch64-pc-windows-msvc.zip" } + }, + "hash": { + "url": "$baseurl/SHA256SUMS" } } }