Sparkle fixes

This commit is contained in:
Micha
2025-12-07 17:50:58 +01:00
parent b570006074
commit 4deae63d43
3 changed files with 7 additions and 9 deletions

View File

@@ -60,6 +60,7 @@ GITEA_REPO="iKeyMon"
# optional Sparkle feed helpers:
# SPARKLE_EDDSA_KEY_FILE="$HOME/.config/Sparkle/iKeyMon.key"
# SPARKLE_DOWNLOAD_BASE_TEMPLATE="https://git.24unix.net/tracer/iKeyMon/releases/download/v{{VERSION}}"
# If you prefer SPARKLE_DOWNLOAD_BASE_URL, it will automatically append `/v<version>` for you.
# SPARKLE_APPCAST_OUTPUT="$ROOT_DIR/Sparkle/appcast.xml" # default
```

10
Sparkle/appcast.xml vendored
View File

@@ -2,14 +2,6 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>iKeyMon</title>
<item>
<title>26.0.30</title>
<pubDate>Sun, 07 Dec 2025 17:48:37 +0100</pubDate>
<sparkle:version>63</sparkle:version>
<sparkle:shortVersionString>26.0.30</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>15.2</sparkle:minimumSystemVersion>
<enclosure url="https://git.24unix.net/tracer/iKeyMon/releases/download/iKeyMon-26.0.30.zip" length="4811494" type="application/octet-stream" sparkle:edSignature="x+Ot/ksA2mzYThyC0dRpYJEy2bmfYBTiSO0FCtwvyqQ+HibLonO0v6HxZH0bUsStWQkNnbURR6tHYWGkOzO3Bw=="/>
</item>
<item>
<title>26.0.29</title>
<pubDate>Sun, 07 Dec 2025 17:07:32 +0100</pubDate>
@@ -27,4 +19,4 @@
<enclosure url="https://git.24unix.net/tracer/iKeyMon/releases/download/v26.0.28/iKeyMon-26.0.28.zip" length="4811473" type="application/octet-stream" sparkle:edSignature="tF188T0m/j22MStCVbVkrf2JllyZ9wiEmc++kgF4GTKhoAuHURYvT/Euy+ivEodmQ/LzeFolN4lViqaVa3y+DQ=="/>
</item>
</channel>
</rss>
</rss>

View File

@@ -36,6 +36,11 @@ generate_appcast() {
download_prefix="${SPARKLE_DOWNLOAD_BASE_URL%/}/v${VERSION}"
fi
# Ensure the version segment is present to match Gitea's /download/vX.Y.Z/ layout.
if [[ -n "$download_prefix" ]] && [[ "$download_prefix" != *"/$VERSION"* ]]; then
download_prefix="${download_prefix%/}/v${VERSION}"
fi
if [[ -z "$generator" || -z "${SPARKLE_EDDSA_KEY_FILE:-}" || -z "$download_prefix" ]]; then
echo " Skipping Sparkle appcast generation (generator/key/download prefix not configured)."
return