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