kunago_dahua.json 1.1 KB

12345678910111213141516171819202122232425262728
  1. {
  2. "version": "1.0.0.1",
  3. "description": "Dahua SmartPSS launcher not requiring admin priviledges.",
  4. "license": "None",
  5. "homepage": "https://www.kunago.com",
  6. "hash": "sha512:D886EFDD7C50F799F0D269AA04637C5A51BB3A1B3BEB1346C531D266CEA5A97848043AAD78E854271CCAC5743BC00078057036402D20149D5F25389BC9585BFD",
  7. "url": "https://git.apason.cz/kunago/scoop-bucket/raw/branch/master/programs/kunago_dahua/kunago_dahua-1.0.0.1.7z",
  8. "bin": [
  9. "kunago_dahua.exe"
  10. ],
  11. "post_install": [
  12. "if ($global) {$dst = $env:ALLUSERSPROFILE} else {$dst = $env:USERPROFILE}",
  13. "$wShell = New-Object -comObject WScript.Shell",
  14. "$shortcut = $wShell.CreateShortcut(\"$dst\\Desktop\\kamery.lnk\")",
  15. "$shortcut.TargetPath = \"$dir\\kunago_dahua.exe\"",
  16. "$shortcut.Save()"
  17. ],
  18. "pre_uninstall": [
  19. "if ($global) {$dst = $env:ALLUSERSPROFILE} else {$dst = $env:USERPROFILE}",
  20. "Remove-Item -Path \"$dst\\Desktop\\kamery.lnk\" -Force"
  21. ],
  22. "shortcuts": [
  23. [
  24. "kunago_dahua.exe",
  25. "Dahua"
  26. ]
  27. ]
  28. }