1
0

kunago_wireguard.json 1.5 KB

123456789101112131415161718192021222324252627282930
  1. {
  2. "version": "1.1.0.1",
  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:23480134A46E89DC3CB275776FD34B63C1BEBD0290718422DE554FDE995F1F59D247EF1E83820BE8A086C9D69D60BD614B5906EBDF18A83C393ADB84C4367CE7",
  7. "url": "https://git.apason.cz/kunago/scoop-bucket/raw/branch/master/programs/kunago_wireguard/kunago_wireguard-1.1.0.1.7z",
  8. "post_install": [
  9. "$task = \"Kunago wireguard autostart\"",
  10. "Register-ScheduledTask -Xml (Get-Content \"$dir\\data\\task.xml\" | Out-String) -TaskName \"$task\" -Force -ErrorAction SilentlyContinue > $null",
  11. "Start-Sleep -Seconds 2.0",
  12. "Start-ScheduledTask -TaskName \"$task\" -ErrorAction SilentlyContinue > $null"
  13. ],
  14. "pre_uninstall": [
  15. "$task = \"Kunago wireguard autostart\"",
  16. "Stop-ScheduledTask -TaskName \"$task\" -ErrorAction SilentlyContinue > $null",
  17. "Start-Sleep -Seconds 2.0",
  18. "Stop-Process -Name \"kunago_wireguard\" -Force -ErrorAction SilentlyContinue > $null",
  19. "Start-Sleep -Seconds 2.0",
  20. "Unregister-ScheduledTask -TaskName \"$task\" -Confirm:$false -ErrorAction SilentlyContinue > $null"
  21. ],
  22. "shortcuts": [
  23. [
  24. "python\\python.exe",
  25. "Wireguard autostart",
  26. "kunago_wireguard.py",
  27. "data\\wireguard.ico"
  28. ]
  29. ]
  30. }