소스 검색

Update Dahua SmartPSS to version 1.0.0.1 where shortcut is created on the desktop

Miroslav Abrahám 2 년 전
부모
커밋
3239d48be4
2개의 변경된 파일14개의 추가작업 그리고 3개의 파일을 삭제
  1. 14 3
      bucket/kunago_dahua.json
  2. BIN
      programs/kunago_dahua/kunago_dahua-1.0.0.1.7z

+ 14 - 3
bucket/kunago_dahua.json

@@ -1,13 +1,24 @@
 {
-    "version": "1.0.0.0",
+    "version": "1.0.0.1",
     "description": "Dahua SmartPSS launcher not requiring admin priviledges.",
     "license": "None",
     "homepage": "https://www.kunago.com",
-    "hash": "sha512:2D5E68A4132DA6685ACE3476E61036AEE8C2EE3B1B1D1433222F5CF129504A866596ED09EC99624E548D0356926A308E5E61531BDCABAD9B206BF8D50EFD2A5A",
-    "url": "https://git.apason.cz/kunago/scoop-bucket/raw/branch/master/programs/kunago_dahua/kunago_dahua-1.0.0.0.7z",
+    "hash": "sha512:D886EFDD7C50F799F0D269AA04637C5A51BB3A1B3BEB1346C531D266CEA5A97848043AAD78E854271CCAC5743BC00078057036402D20149D5F25389BC9585BFD",
+    "url": "https://git.apason.cz/kunago/scoop-bucket/raw/branch/master/programs/kunago_dahua/kunago_dahua-1.0.0.1.7z",
     "bin": [
       "kunago_dahua.exe"
     ],
+    "post_install": [
+        "if ($global) {$dst = $env:ALLUSERSPROFILE} else {$dst = $env:USERPROFILE}",
+        "$wShell = New-Object -comObject WScript.Shell",
+        "$shortcut = $wShell.CreateShortcut(\"$dst\\Desktop\\kamery.lnk\")",
+        "$shortcut.TargetPath = \"$dir\\kunago_dahua.exe\"",
+        "$shortcut.Save()"
+    ],
+    "pre_uninstall": [
+        "if ($global) {$dst = $env:ALLUSERSPROFILE} else {$dst = $env:USERPROFILE}",
+        "Remove-Item -Path \"$dst\\Desktop\\kamery.lnk\" -Force"
+    ],
     "shortcuts": [
         [
             "kunago_dahua.exe",

BIN
programs/kunago_dahua/kunago_dahua-1.0.0.1.7z