Skip to content

Commit

Permalink
clash-verge-rev: Fix shortcut & uninstall script (#14494)
Browse files Browse the repository at this point in the history
* clash-verge-rev: Fix wrong file name when creating shortcuts
* clash-verge-rev: Fix system service did not removed when uninstall
  • Loading branch information
mslxl authored Dec 4, 2024
1 parent 2efebf1 commit 6f7c77c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bucket/clash-verge-rev.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@
"New-Item \"$env:USERPROFILE\\.config\\clash-verge\" -ItemType Junction -Target \"$persist_dir\" | Out-Null"
]
},
"pre_uninstall": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"Start-Process \"$dir\\resources\\uninstall-service.exe\" -Wait -Verb 'RunAs' -WindowStyle 'Hidden'; Start-Sleep -Seconds 3"
],
"uninstaller": {
"script": "Remove-Item \"$env:USERPROFILE\\.config\\clash-verge\" -Recurse -Force -ErrorAction 'SilentlyContinue'"
},
"shortcuts": [
[
"Clash Verge.exe",
"clash-verge.exe",
"Clash Verge"
]
],
Expand Down

0 comments on commit 6f7c77c

Please sign in to comment.