add autoupdate and hash

This commit is contained in:
Simon Daniel Streich
2026-07-16 12:48:14 +02:00
parent 872cab095c
commit 6be767645d
11 changed files with 298 additions and 110 deletions
+28 -5
View File
@@ -1,8 +1,31 @@
{
"version": "1.0.0",
"version": "20260715T124927Z",
"description": "MyElexis CLI",
"url": "https://download.medelexis.ch/myelexis-cli/windows/myelexis-cli-1.0.0-SNAPSHOT-runner.exe#/myelexis-cli.exe",
"hash": "b9df1355c599acf7e816fe490ca9e1a7c6aef4de1a5f0b45e6343e7ccbe74fc8",
"bin": [
["myelexis-cli.exe", "ee"],
["myelexis-cli.exe", "es"]
]
}
[
"myelexis-cli.exe",
"ee"
],
[
"myelexis-cli.exe",
"es"
]
],
"checkver": {
"url": "https://download.medelexis.ch/myelexis-cli/windows/",
"script": [
"$fileUrl = 'https://download.medelexis.ch/myelexis-cli/windows/myelexis-cli-1.0.0-SNAPSHOT-runner.exe'",
"$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('yyyyMMddTHHmmssZ')"
],
"regex": "(?<version>\\d{8}T\\d{6}Z)"
},
"autoupdate": {
"url": "https://download.medelexis.ch/myelexis-cli/windows/myelexis-cli-1.0.0-SNAPSHOT-runner.exe#/myelexis-cli.exe"
}
}