67 lines
2.7 KiB
JSON
67 lines
2.7 KiB
JSON
{
|
|
"version": "20260601T081039Z",
|
|
"description": "Elexis 3.12",
|
|
"url": "https://download.medelexis.ch/medelexis/3.12/products/ch.medelexis.application.product.Medelexis-win32.win32.x86_64-signed.zip#/Elexis-20260601T081039Z.zip",
|
|
"hash": "dc19c40dd1bcd66a6d823c1a59ced571542fe34a3e6c58e710f055cdbcc7ed38",
|
|
"bin": [
|
|
[
|
|
"Medelexis.exe",
|
|
"e12",
|
|
"-console"
|
|
]
|
|
],
|
|
"shortcuts": [
|
|
[
|
|
"Medelexis.exe",
|
|
"Elexis 3.12",
|
|
"-console"
|
|
],
|
|
[
|
|
"Medelexis.ini",
|
|
"ini 3.12"
|
|
]
|
|
],
|
|
"post_install": [
|
|
"$iniPath = \"$persist_dir\\Medelexis.ini\"",
|
|
"$ini = Get-Content $iniPath",
|
|
"$insert = @('-Dprovisioning.UpdateRepository=3.12', '-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 3.12 wurde installiert.",
|
|
"",
|
|
"INI wurde mit Repo-Eintrag, DB-Abfrage und FOP-Debug ergänzt.",
|
|
"Programm startet mit Konsole.",
|
|
"",
|
|
"Konsolenbefehle:",
|
|
"-> e12 = Start Elexis 3.12"
|
|
],
|
|
"checkver": {
|
|
"url": "https://download.medelexis.ch/medelexis/3.12/products/",
|
|
"script": [
|
|
"$fileUrl = 'https://download.medelexis.ch/medelexis/3.12/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/3.12/products/ch.medelexis.application.product.Medelexis-win32.win32.x86_64-signed.zip#/Elexis-$version.zip"
|
|
}
|
|
} |