fix und autoupdate für ee-iso
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": "13.6.0",
|
||||
"url": "https://git.streichtech.ch/elexis/ee-iso-builder/releases/download/v13.6.0/ElexisEnvironment.iso#/ElexisEnvironment.dat",
|
||||
"hash": "58fd7e00b7f4771fd4ee2165f3ebaff205cab780461340fc2c286f1b12faae90",
|
||||
"installer": {
|
||||
"script": "Copy-Item \"$dir\\$fname\" \"$HOME\\Downloads\\ElexisEnvironment.iso\" -Force"
|
||||
},
|
||||
"post_install": [
|
||||
"$scoopCommand = (Get-Command scoop).Source",
|
||||
"$cleanupCommand = \"Start-Sleep -Seconds 10; & '$scoopCommand' cleanup ee_iso --cache; & '$scoopCommand' uninstall ee_iso --purge\"",
|
||||
"$cleanupBytes = [Text.Encoding]::Unicode.GetBytes($cleanupCommand)",
|
||||
"$encodedCommand = [Convert]::ToBase64String($cleanupBytes)",
|
||||
"Start-Process powershell.exe -WorkingDirectory $HOME -WindowStyle Hidden -ArgumentList @('-NoProfile', '-EncodedCommand', $encodedCommand)"
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://git.streichtech.ch/api/v1/repos/elexis/ee-iso-builder/releases/latest",
|
||||
"jsonpath": "$.tag_name",
|
||||
"regex": "^v(?<version>[\\d.]+)$"
|
||||
},
|
||||
"autoupdate": {
|
||||
"url": "https://git.streichtech.ch/elexis/ee-iso-builder/releases/download/v$version/ElexisEnvironment.iso#/ElexisEnvironment.dat"
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"version": "13.5.0",
|
||||
"url": "https://git.streichtech.ch/elexis/ee-iso-builder/releases/download/v13.5.0/ElexisEnvironment.iso#/ElexisEnvironment.dat",
|
||||
"installer": {
|
||||
"script": [
|
||||
"Rename-Item \"$dir\\ElexisEnvironment.dat\" \"ElexisEnvironment.iso\"",
|
||||
"Copy-Item \"$dir\\ElexisEnvironment.iso\" \"$HOME\\Downloads\\ElexisEnvironment.iso\"",
|
||||
"Remove-Item \"$dir\\ElexisEnvironment.iso\"",
|
||||
"scoop uninstall ee_iso --purge"
|
||||
]
|
||||
},
|
||||
"autoupdate": {
|
||||
"url": "https://git.streichtech.ch/elexis/ee-iso-builder/releases/download/v$version/ElexisEnvironment.iso#/ElexisEnvironment.dat"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user