Skip to content

Commit

Permalink
Removes UserData argument and Debug shortcut for gajim
Browse files Browse the repository at this point in the history
  • Loading branch information
quardbreak committed Nov 29, 2023
1 parent dc839fa commit 2c235b0
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions bucket/gajim.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<span class=\"label label-primary\">([\\d.]+)</span>"
},
"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": {
Expand Down

0 comments on commit 2c235b0

Please sign in to comment.