Skip to content

Commit

Permalink
Update appcast.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed Nov 7, 2024
1 parent e5a1416 commit c40a843
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 20 deletions.
14 changes: 14 additions & 0 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
1. バージョン番号を上げてアーカイブビルドする
2. dmg を作る
```sh
./bin/create_dmg.sh リリースアーカイブした.appのパス
```
3. `appcast.xml`を作る
```sh
./bin/generate_appcast --account com.kyome.ShiftWindow .
```
4. `appcast.xml``enclosure`タグの`url`を GitHub の Release 添付ファイルリンクに変更
```diff xml
- <enclosure url="https://raw.githubusercontent.com/Kyome22/ShiftWindow/main/Installer.dmg" />
+ <enclosure url="https://github.com/Kyome22/ShiftWindow/releases/download/3.0.0/Installer.dmg" />
```
14 changes: 14 additions & 0 deletions appcast.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" standalone="yes"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>ShiftWindow</title>
<item>
<title>3.0</title>
<pubDate>Thu, 07 Nov 2024 20:44:39 +0900</pubDate>
<sparkle:version>3.0.0</sparkle:version>
<sparkle:shortVersionString>3.0</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/Kyome22/ShiftWindow/releases/download/3.0.0/Installer.dmg" length="1767713" type="application/octet-stream" sparkle:edSignature="U9g1z9S6KdXEmImu101nHHs1T5no0tDj1aDMb/6N96st+za56imUljwRnc2imesll+0iBPhh8gkIqA4uQ+ABCw=="/>
</item>
</channel>
</rss>
12 changes: 12 additions & 0 deletions bin/create_dmg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
## https://github.com/create-dmg/create-dmg

create-dmg \
--icon-size 128 \
--text-size 16 \
--icon "ShiftWindow.app" 200 150 \
--app-drop-link 450 150 \
--window-pos 200 200 \
--window-size 650 376 \
--background bin/dmg_background.png \
Installer.dmg $1
20 changes: 0 additions & 20 deletions bin/createdmg_shortcut.sh

This file was deleted.

0 comments on commit c40a843

Please sign in to comment.