diff --git a/.gitignore b/.gitignore index c51cd35..a7d3d38 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.bak -*.exe \ No newline at end of file +*.exe +scripts/* +.forgejo/* \ No newline at end of file diff --git a/bucket/ee-iso.json b/bucket/ee-iso.json new file mode 100644 index 0000000..b5b28f0 --- /dev/null +++ b/bucket/ee-iso.json @@ -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(?[\\d.]+)$" + }, + "autoupdate": { + "url": "https://git.streichtech.ch/elexis/ee-iso-builder/releases/download/v$version/ElexisEnvironment.iso#/ElexisEnvironment.dat" + } +} diff --git a/bucket/ee_iso.json b/bucket/ee_iso.json deleted file mode 100644 index d36b17c..0000000 --- a/bucket/ee_iso.json +++ /dev/null @@ -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" - } -} \ No newline at end of file