kunago_wireguard.json 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. {
  2. "version": "1.0.0.7",
  3. "description": "Service that connects or disconnects a wireguard tunnel based on the current conditions.",
  4. "license": "None",
  5. "homepage": "https://www.kunago.com",
  6. "hash": "sha512:90827B520501C06E6ADDBE4C2B6CD46BAAB78C10806C69B98686BAAB8ABDA5B81C9367CBD850A42E40A1C884BC0D168130A21C82DD71E5B639A81388119DC0CB",
  7. "url": "https://git.apason.cz/kunago/scoop-bucket/raw/branch/master/programs/kunago_wireguard/kunago_wireguard-1.0.0.7.7z",
  8. "bin": [
  9. "kunago_wireguard.exe"
  10. ],
  11. "post_install": [
  12. "$task = \"Kunago wireguard autostart\"",
  13. "Register-ScheduledTask -Xml (Get-Content \"$dir\\data\\task.xml\" | Out-String) -TaskName \"$task\" -Force -ErrorAction SilentlyContinue > $null",
  14. "Start-Sleep -Seconds 2.0",
  15. "Start-ScheduledTask -TaskName \"$task\" -ErrorAction SilentlyContinue > $null"
  16. ],
  17. "pre_uninstall": [
  18. "$task = \"Kunago wireguard autostart\"",
  19. "Stop-ScheduledTask -TaskName \"$task\" -ErrorAction SilentlyContinue > $null",
  20. "Start-Sleep -Seconds 2.0",
  21. "Stop-Process -Name \"kunago_wireguard\" -Force -ErrorAction SilentlyContinue > $null",
  22. "Start-Sleep -Seconds 2.0",
  23. "Unregister-ScheduledTask -TaskName \"$task\" -Confirm:$false -ErrorAction SilentlyContinue > $null"
  24. ],
  25. "shortcuts": [
  26. [
  27. "kunago_wireguard.exe",
  28. "Wireguard autostart"
  29. ]
  30. ]
  31. }