Skip to content

Commit 22f3574

Browse files
committed
chore: update sparkle appcast
1 parent e71d488 commit 22f3574

File tree

2 files changed

+42
-11
lines changed

2 files changed

+42
-11
lines changed

Scripts/make_appcast.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,21 @@ trap cleanup EXIT
5757

5858
DOWNLOAD_URL_PREFIX=${SPARKLE_DOWNLOAD_URL_PREFIX:-"https://github.com/Dimillian/CodexSkillManager/releases/download/v${VERSION}/"}
5959

60-
if ! command -v generate_appcast >/dev/null; then
61-
echo "generate_appcast not found in PATH. Install Sparkle tools." >&2
62-
exit 1
60+
GEN_APPCAST=$(command -v generate_appcast || true)
61+
TEMP_DIR=""
62+
cleanup_tools() {
63+
if [[ -n "$TEMP_DIR" ]]; then
64+
rm -rf "$TEMP_DIR"
65+
fi
66+
}
67+
trap cleanup_tools EXIT
68+
69+
if [[ -z "$GEN_APPCAST" ]]; then
70+
TEMP_DIR=$(mktemp -d /tmp/sparkle-appcast.XXXXXX)
71+
curl -sL -o "$TEMP_DIR/sparkle.tar.xz" \
72+
"https://github.com/sparkle-project/Sparkle/releases/download/2.8.1/Sparkle-2.8.1.tar.xz"
73+
tar -xf "$TEMP_DIR/sparkle.tar.xz" -C "$TEMP_DIR" ./bin/generate_appcast
74+
GEN_APPCAST="$TEMP_DIR/bin/generate_appcast"
6375
fi
6476

6577
WORK_DIR=$(mktemp -d /tmp/appcast.XXXXXX)
@@ -69,7 +81,7 @@ cp "$ZIP" "$WORK_DIR/$ZIP_NAME"
6981
cp "$NOTES_HTML" "$WORK_DIR/$ZIP_BASE.html"
7082

7183
pushd "$WORK_DIR" >/dev/null
72-
generate_appcast \
84+
"$GEN_APPCAST" \
7385
--ed-key-file "$PRIVATE_KEY_FILE" \
7486
--download-url-prefix "$DOWNLOAD_URL_PREFIX" \
7587
--embed-release-notes \

appcast.xml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
3-
<channel>
4-
<title>Codex Skill Manager</title>
5-
<link>https://raw.githubusercontent.com/Dimillian/CodexSkillManager/main/appcast.xml</link>
6-
<description>Codex Skill Manager updates</description>
7-
</channel>
8-
</rss>
3+
<channel>
4+
<title>Codex Skill Manager</title>
5+
<link>https://raw.githubusercontent.com/Dimillian/CodexSkillManager/main/appcast.xml</link>
6+
<description>Codex Skill Manager updates</description>
7+
<item>
8+
<title>0.6.2</title>
9+
<pubDate>Wed, 07 Jan 2026 20:07:03 +0100</pubDate>
10+
<link>https://raw.githubusercontent.com/Dimillian/CodexSkillManager/main/appcast.xml</link>
11+
<sparkle:version>1</sparkle:version>
12+
<sparkle:shortVersionString>0.6.2</sparkle:shortVersionString>
13+
<sparkle:minimumSystemVersion>26.0</sparkle:minimumSystemVersion>
14+
<description><![CDATA[<!doctype html>
15+
<html lang="en">
16+
<meta charset="utf-8">
17+
<title>CodexSkillManager-0.6.2</title>
18+
<body>
19+
<h2>CodexSkillManager-0.6.2</h2>
20+
<p>Release notes not provided.</p>
21+
</body>
22+
</html>
23+
]]></description>
24+
<enclosure url="https://github.com/Dimillian/CodexSkillManager/releases/download/v0.6.2/CodexSkillManager-0.6.2.zip" length="3247716" type="application/octet-stream" sparkle:edSignature="rnT5R75VWeJwHPO63rz50CELLSHSHfGB4ApSm9+x6DhqWP59mFMfSfsaRmfJwLh5K8FV0PsTSwgbGxzPETmfBQ=="/>
25+
</item>
26+
</channel>
27+
</rss>

0 commit comments

Comments
 (0)