diff --git a/bucket/duckstation-preview.json b/bucket/duckstation-preview.json index f6179f153221..1c714ee62a83 100644 --- a/bucket/duckstation-preview.json +++ b/bucket/duckstation-preview.json @@ -9,7 +9,7 @@ "notes": [ "ATTENTION: Duckstation requires a PSX BIOS to function.", "Place the BIOS file in $persist_dir\\bios", - "Learn more at: https://www.duckstation.org/wiki/BIOS" + "Learn more at: https://web.archive.org/web/20210620033009/https://www.duckstation.org/wiki/BIOS" ], "url": "https://github.com/stenzek/duckstation/releases/download/preview/duckstation-windows-x64-release.zip", "hash": "f646b1bfc63e0832558bc19242c7fc1cc4c04ed4c252104c04b2f4f5e7e7918a", @@ -24,11 +24,16 @@ "uninstaller": { "script": "Copy-Item \"$dir\\settings.ini\" \"$persist_dir\" -ErrorAction SilentlyContinue -Force" }, - "shortcuts": [ - [ - "duckstation-qt-x64-ReleaseLTCG.exe", - "DuckStation (preview)" - ] + "post_install": [ + "echo \"update bin/shortcuts\"", + "$shell = New-Object -COM WScript.Shell", + "$shortcut = $shell.CreateShortCut(\"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\DuckStation (preview).lnk\")", + "$shortcut.TargetPath = \"$original_dir\\duckstation-qt-x64-ReleaseLTCG.exe\"", + "$shortcut.Save()" + ], + "post_uninstall": [ + "echo \"update bin/shortcuts\"", + "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\DuckStation (preview).lnk\"" ], "persist": [ "bios", diff --git a/bucket/duckstation.json b/bucket/duckstation.json index 5dc4bc8480d3..b3edc4f62d9b 100644 --- a/bucket/duckstation.json +++ b/bucket/duckstation.json @@ -9,7 +9,7 @@ "notes": [ "ATTENTION: Duckstation requires a PSX BIOS to function.", "Place the BIOS file in $persist_dir\\bios", - "Learn more at: https://www.duckstation.org/wiki/BIOS" + "Learn more at: https://web.archive.org/web/20210620033009/https://www.duckstation.org/wiki/BIOS" ], "url": "https://github.com/stenzek/duckstation/releases/download/latest/duckstation-windows-x64-release.zip", "hash": "570516689115e77c8898bf85cc0b24a1055fd21f56a4fe70954b08e47b00277c", @@ -24,11 +24,16 @@ "uninstaller": { "script": "Copy-Item \"$dir\\settings.ini\" \"$persist_dir\" -ErrorAction SilentlyContinue -Force" }, - "shortcuts": [ - [ - "duckstation-qt-x64-ReleaseLTCG.exe", - "Duckstation" - ] + "post_install": [ + "echo \"update bin/shortcuts\"", + "$shell = New-Object -COM WScript.Shell", + "$shortcut = $shell.CreateShortCut(\"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\DuckStation.lnk\")", + "$shortcut.TargetPath = \"$original_dir\\duckstation-qt-x64-ReleaseLTCG.exe\"", + "$shortcut.Save()" + ], + "post_uninstall": [ + "echo \"update bin/shortcuts\"", + "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\DuckStation.lnk\"" ], "persist": [ "bios",