add autoupdate and hash
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"version": "20260601T071724Z",
|
||||
"description": "Elexis master",
|
||||
"url": "https://download.medelexis.ch/medelexis/master/products/ch.medelexis.application.product.Medelexis-win32.win32.x86_64-signed.zip#/Elexis-20260601T071724Z.zip",
|
||||
"hash": "325f38a7b7a297a315ddad03ddb34e3061780c3fd869c4856cbe0ab7bed51124",
|
||||
"bin": [
|
||||
[
|
||||
"Medelexis.exe",
|
||||
"em",
|
||||
"-console"
|
||||
]
|
||||
],
|
||||
"shortcuts": [
|
||||
[
|
||||
"Medelexis.exe",
|
||||
"Elexis master",
|
||||
"-console"
|
||||
],
|
||||
[
|
||||
"Medelexis.ini",
|
||||
"ini master"
|
||||
]
|
||||
],
|
||||
"post_install": [
|
||||
"$iniPath = \"$persist_dir\\Medelexis.ini\"",
|
||||
"$ini = Get-Content $iniPath",
|
||||
"$insert = @('-Dprovisioning.UpdateRepository=master', '-DopenDBWizard', '-Dfop.printing.debug=true')",
|
||||
"$missing = @($insert | Where-Object { $_ -notin $ini })",
|
||||
"if ($missing.Count -gt 0) {",
|
||||
" $vmargs = $ini | Select-String '^-vmargs$' | Select-Object -First 1",
|
||||
" if (-not $vmargs) { throw '-vmargs wurde in Medelexis.ini nicht gefunden.' }",
|
||||
" $index = $vmargs.LineNumber",
|
||||
" $before = $ini[0..($index - 1)]",
|
||||
" $after = if ($index -lt $ini.Count) { $ini[$index..($ini.Count - 1)] } else { @() }",
|
||||
" $ini = @($before) + $missing + @($after)",
|
||||
" Set-Content $iniPath $ini",
|
||||
"}"
|
||||
],
|
||||
"persist": [
|
||||
"Medelexis.ini",
|
||||
"workspace\\.metadata\\.plugins\\org.eclipse.e4.workbench"
|
||||
],
|
||||
"notes": [
|
||||
"Elexis master wurde installiert.",
|
||||
"",
|
||||
"INI wurde mit Repo-Eintrag, DB-Abfrage und FOP-Debug ergänzt.",
|
||||
"Programm startet mit Konsole.",
|
||||
"",
|
||||
"Konsolenbefehle:",
|
||||
"-> em = Start Elexis master"
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://download.medelexis.ch/medelexis/master/products/",
|
||||
"script": [
|
||||
"$fileUrl = 'https://download.medelexis.ch/medelexis/master/products/ch.medelexis.application.product.Medelexis-win32.win32.x86_64-signed.zip'",
|
||||
"$response = Invoke-WebRequest -Uri $fileUrl -Method Head -UseBasicParsing",
|
||||
"$lastModified = [string]$response.Headers['Last-Modified']",
|
||||
"if ([string]::IsNullOrWhiteSpace($lastModified)) { throw 'Kein Last-Modified-Header vorhanden.' }",
|
||||
"$date = [DateTimeOffset]::ParseExact($lastModified, 'R', [Globalization.CultureInfo]::InvariantCulture)",
|
||||
"$date.UtcDateTime.ToString(\"yyyyMMdd'T'HHmmss'Z'\")"
|
||||
],
|
||||
"regex": "(?<version>\\d{8}T\\d{6}Z)"
|
||||
},
|
||||
"autoupdate": {
|
||||
"url": "https://download.medelexis.ch/medelexis/master/products/ch.medelexis.application.product.Medelexis-win32.win32.x86_64-signed.zip#/Elexis-$version.zip"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user