From 532fb456024a56ee904a209247f7995fde4a73c5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 15 Jul 2026 13:32:00 +0200 Subject: [PATCH] global-functions: $ScriptInstallUpdate: allow to force checksums This is a follow-up on aa14c26488e2518b87f03121b472b639dfc06342 and allows to use checksums for custom hosting. --- global-functions.rsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/global-functions.rsc b/global-functions.rsc index 61408bec..d9751663 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1282,6 +1282,7 @@ :global IDonate; :global NoNewsAndChangesNotification; :global ScriptUpdatesBaseUrl; + :global ScriptUpdatesCheckSums; :global ScriptUpdatesCRLF; :global ScriptUpdatesUrlSuffix; @@ -1318,7 +1319,8 @@ :local DeviceMode [ /system/device-mode/get ]; :local CheckSums ({}); - :if ([ :pick $ScriptUpdatesBaseUrl 0 21 ] = "https://rsc.eworm.de/") do={ + :if ([ :pick $ScriptUpdatesBaseUrl 0 21 ] = "https://rsc.eworm.de/" || \ + $ScriptUpdatesCheckSums = true) do={ :onerror Err { :local Url ($ScriptUpdatesBaseUrl . "checksums.json" . $ScriptUpdatesUrlSuffix); $LogPrint debug $0 ("Fetching checksums from url: " . $Url);