Sparkle fixes
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
8
Sparkle/appcast.xml
vendored
8
Sparkle/appcast.xml
vendored
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user