From 2c235b029e02d0d10ffadda01e4b39524760080c Mon Sep 17 00:00:00 2001 From: quardbreak <44920739+quardbreak@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:18:19 +0300 Subject: [PATCH] Removes UserData argument and Debug shortcut for gajim --- bucket/gajim.json | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/bucket/gajim.json b/bucket/gajim.json index 9f53482..929b843 100644 --- a/bucket/gajim.json +++ b/bucket/gajim.json @@ -12,37 +12,31 @@ "bin": [ [ "bin\\Gajim.exe", - "gajim", - "-c $dir\\UserData" + "gajim" ] ], "shortcuts": [ [ "bin\\Gajim.exe", - "Gajim", - "-c $dir\\UserData" - ], - [ - "bin\\Gajim-Debug.exe", - "Gajim (Debug)", - "-c $dir\\UserData" + "Gajim" ] ], "post_install": [ "Remove-Item \"$dir\\`$PLUGINSDIR\" -Recurse", - "if (!(Test-Path \"$dir\\UserData\\*\") -and (Test-Path \"$env:APPDATA\\Gajim\")) {", - " info '[Portable Mode]: Copying user data...'", - " Copy-Item \"$env:APPDATA\\Gajim\\*\" \"$dir\\UserData\" -Recurse", - "}" + "Write-Host 'Registering the XMPP Protocol...'", + "New-Item 'HKCU:\\SOFTWARE\\Classes\\xmpp\\shell\\open\\command' -Value \"\"\"$dir\\bin\\Gajim.exe\"\" \"\"%1\"\"\" -Force | Out-Null", + "New-Item 'HKCU:\\SOFTWARE\\Classes\\xmpp\\DefaultIcon' -Value \"$dir\\bin\\Gajim.exe,1\" -Force | Out-Null", + "New-ItemProperty 'HKCU:\\SOFTWARE\\Classes\\xmpp\\shell\\open' -Name 'FriendlyAppName' -PropertyType 'String' -Value 'Gajim' | Out-Null", + "New-ItemProperty 'HKCU:\\SOFTWARE\\Classes\\xmpp' -Name '(Default)' -PropertyType 'String' -Value 'URL:xmpp-uri' | Out-Null", + "New-ItemProperty 'HKCU:\\SOFTWARE\\Classes\\xmpp' -Name 'URL Protocol' -PropertyType 'String' -Value '' | Out-Null", + "Write-Host 'Done!'" ], - "checkver": { - "url": "https://gajim.org/download/", - "regex": "([\\d.]+)" - }, + "pre_uninstall": "Write-Host 'Unregistering the XMPP Protocol...'; Remove-Item 'HKCU:\\SOFTWARE\\Classes\\xmpp' -Force -Recurse; Write-Host 'Done!'", "persist": [ "UserData", "var\\cache" ], + "checkver": "Gajim\\s([\\d.]+)", "autoupdate": { "architecture": { "64bit": {