Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

Canary: compare the newest stable appcast item with the latest release, not a beta on top (#69)

Gauthier Piarrette0a9c40fd9c63
diff --git a/Scripts/e2e-canary.sh b/Scripts/e2e-canary.sh
index ac5841c..9c7aeeb 100755
--- a/Scripts/e2e-canary.sh
+++ b/Scripts/e2e-canary.sh
@@ -104,7 +104,12 @@ if curl -fsSL --retry 3 -o "$G/appcast.xml" "https://raw.githubusercontent.com/$
PARSED=$(python3 - "$G/appcast.xml" <<'PY'
import sys, xml.etree.ElementTree as ET
root = ET.parse(sys.argv[1]).getroot()
-item = root.find('./channel/item') # release.sh inserts newest first
+NS = '{http://www.andymatuschak.org/xml-namespaces/sparkle}'
+# release.sh inserts newest first, but a beta item (sparkle:channel) is only for opted-in installs:
+# the item everyone gets is the newest one WITHOUT a channel, and that is what must match the
+# latest release (2026-09-08: the 0.9.0 beta on top tripped this as drift against v0.8.9).
+items = [i for i in root.findall('./channel/item') if i.find(NS + 'channel') is None]
+item = items[0] if items else root.find('./channel/item')
enc = item.find('enclosure')
print(enc.get('{http://www.andymatuschak.org/xml-namespaces/sparkle}version'), enc.get('url'))
PY