Skip to content

Commit 1539bed

Browse files
committed
Bump version to 0.5.0
1 parent ecace5f commit 1539bed

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION = 0.4.0
2-
APP_BUILD = 40
1+
APP_VERSION = 0.5.0
2+
APP_BUILD = 50
33

appcast.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
33
<channel>
44
<title>Custom Suggestion Service</title>
5+
<item>
6+
<title>0.5.0</title>
7+
<pubDate>Tue, 24 Sep 2024 16:57:22 +0800</pubDate>
8+
<sparkle:version>50</sparkle:version>
9+
<sparkle:shortVersionString>0.5.0</sparkle:shortVersionString>
10+
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
11+
<sparkle:releaseNotesLink>https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/releases/tag/0.5.0</sparkle:releaseNotesLink>
12+
<enclosure url="https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/releases/download/0.5.0/Custom.Suggestion.Service.app.zip" length="6780334" type="application/octet-stream" sparkle:edSignature="xPs4zYq3gVWjR/VAGhT0RyAZsvmq605Cg+JpRM9CF8ap8ETqhJvj7q1VOcc8UdtllRX94+po9AF/92KoSMZ7Dw=="/>
13+
</item>
514
<item>
615
<title>0.4.0</title>
716
<pubDate>Mon, 24 Jun 2024 00:33:39 +0800</pubDate>
@@ -22,16 +31,5 @@
2231
</sparkle:releaseNotesLink>
2332
<enclosure url="https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/releases/download/0.3.0/Custom.Suggestion.Service.app.zip" length="6584455" type="application/octet-stream" sparkle:edSignature="HEeUsDcuq3Yt7pwAOO4WWuS9aamCEVOZjhSrRbTXiLYajv9ybRkhFiYXQv74JMvTdf6JmIweQjYjHQIXs38lBA=="/>
2433
</item>
25-
<item>
26-
<title>0.2.0</title>
27-
<pubDate>Mon, 04 Mar 2024 12:50:34 +0800</pubDate>
28-
<sparkle:version>20</sparkle:version>
29-
<sparkle:shortVersionString>0.2.0</sparkle:shortVersionString>
30-
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
31-
<sparkle:releaseNotesLink>
32-
https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/releases/tag/0.2.0
33-
</sparkle:releaseNotesLink>
34-
<enclosure url="https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/releases/download/0.2.0/Custom.Suggestion.Service.app.zip" length="6556150" type="application/octet-stream" sparkle:edSignature="BC9S9lkh8o8DhMG0txy3AKrqQul574SWVgQD9eEf4D2H10/00kebMEEgKjJjxLvSQjSsyuXOgwCCkCJ8/rZqCA=="/>
35-
</item>
3634
</channel>
3735
</rss>

makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
GITHUB_URL := https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/
22
ZIPNAME_BASE := Custom.Suggestion.Service.app
3+
APPCAST_PATH := ./appcast.xml
34

45
setup:
56
echo "Setup."
67

78
# Usage: make appcast app=path/to/bundle.app tag=1.0.0 [channel=beta] [release=1]
89
appcast:
9-
$(eval TMPDIR := ~/Library/Caches/CustomSuggestionServiceRelease/$(shell uuidgen))
10+
$(eval RELEASEDIR := ~/Library/Caches/CodeiumForXcodeRelease/$(shell uuidgen))
1011
$(eval BUNDLENAME := $(shell basename "$(app)"))
1112
$(eval WORKDIR := $(shell dirname "$(app)"))
1213
$(eval ZIPNAME := $(ZIPNAME_BASE)$(if $(channel),.$(channel).$(if $(release),$(release),1)))
1314
$(eval RELEASENOTELINK := $(GITHUB_URL)releases/tag/$(tag))
14-
mkdir -p $(TMPDIR)
15-
cp appcast.xml $(TMPDIR)/appcast.xml
15+
mkdir -p $(RELEASEDIR)
16+
cp "$(APPCAST_PATH)" $(RELEASEDIR)/appcast.xml
1617
cd $(WORKDIR) && ditto -c -k --sequesterRsrc --keepParent "$(BUNDLENAME)" "$(ZIPNAME).zip"
17-
cd $(WORKDIR) && cp "$(ZIPNAME).zip" $(TMPDIR)/
18-
touch $(TMPDIR)/$(ZIPNAME).html
19-
echo "<body></body>" > $(TMPDIR)/$(ZIPNAME).html
20-
-sparkle/bin/generate_appcast $(TMPDIR) --download-url-prefix "$(GITHUB_URL)releases/download/$(tag)/" --release-notes-url-prefix "$(RELEASENOTELINK)" $(if $(channel),--channel "$(channel)")
21-
mv -f $(TMPDIR)/appcast.xml .
22-
rm -rf $(TMPDIR)
23-
sed -i '' 's/$(ZIPNAME).html/$(tag)/g' appcast.xml
18+
cd $(WORKDIR) && cp "$(ZIPNAME).zip" $(RELEASEDIR)/
19+
touch $(RELEASEDIR)/$(ZIPNAME).html
20+
echo "<body></body>" > $(RELEASEDIR)/$(ZIPNAME).html
21+
-sparkle/bin/generate_appcast $(RELEASEDIR) --download-url-prefix "$(GITHUB_URL)releases/download/$(tag)/" --release-notes-url-prefix "$(RELEASENOTELINK)" $(if $(channel),--channel "$(channel)")
22+
mv -f $(RELEASEDIR)/appcast.xml "$(APPCAST_PATH)"
23+
rm -rf $(RELEASEDIR)
24+
sed -i '' 's/$(ZIPNAME).html/$(tag)/g' "$(APPCAST_PATH)"
2425

2526
.PHONY: setup appcast
27+

0 commit comments

Comments
 (0)