1
0

kunago_dahua.json 1.4 KB

123456789101112131415161718192021222324252627282930
  1. {
  2. "version": "1.0.0.2",
  3. "description": "Dahua SmartPSS launcher not requiring admin priviledges.",
  4. "license": "None",
  5. "homepage": "https://www.kunago.com",
  6. "hash": "sha512:5BDFCAF8B2BF64D617DC96F961C726AC8DC9CD37247B09CCB8C19555E760180EC4690E3FE0FF2B50BEEC45BDE5C387A7E1FFC621424A8981A7989D732676EA97",
  7. "url": "https://git.apason.cz/kunago/scoop-bucket/raw/branch/master/programs/kunago_dahua/kunago_dahua-1.0.0.2.7z",
  8. "bin": [
  9. "kunago_dahua.exe"
  10. ],
  11. "post_install": [
  12. "if ($global) {$dst = $env:PUBLIC} else {$dst = $env:USERPROFILE}",
  13. "$link = \"$dst\\Desktop\\Kamery.lnk\"",
  14. "if (Test-Path $link -PathType Leaf) {",
  15. " Remove-Item -Path $link -Force",
  16. "}",
  17. "$wShell = New-Object -comObject WScript.Shell",
  18. "$shortcut = $wShell.CreateShortcut($link)",
  19. "$shortcut.TargetPath = \"$dir\\kunago_dahua.exe\"",
  20. "$shortcut.Save()"
  21. ],
  22. "pre_uninstall": [
  23. "if ($global) {$dst = $env:PUBLIC} else {$dst = $env:USERPROFILE}",
  24. "$link = \"$dst\\Desktop\\Kamery.lnk\"",
  25. "if (Test-Path $link -PathType Leaf) {",
  26. " Remove-Item -Path $link -Force",
  27. "}"
  28. ],
  29. "notes": "Poslední verze Dahua SmartPSS se nachází na odkazu https://www.dahuatechnology.cz/download/smart-pss-softver-pre-win-ver-2-02-1/?wpdmdl=450"
  30. }