Skip to content

Commit 4a2a82a

Browse files
committed
add auto-updator support
1 parent a79cfd3 commit 4a2a82a

9 files changed

Lines changed: 399 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,16 @@ jobs:
7272
- uses: tauri-apps/tauri-action@v0
7373
env:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
76+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
7577
with:
7678
tagName: ${{ github.ref_name }}
7779
releaseName: "AnySCP ${{ github.ref_name }}"
7880
releaseBody: ""
7981
releaseDraft: true
8082
prerelease: false
8183
args: ${{ matrix.args }}
84+
updaterJsonKeepUniversal: true
8285

8386
update-release-notes:
8487
needs: build
@@ -91,20 +94,16 @@ jobs:
9194
fetch-depth: 0
9295

9396
- name: Generate changelog
94-
id: changelog
9597
run: |
96-
# Get the previous tag
9798
PREV_TAG=$(git tag --sort=-version:refname | head -2 | tail -1)
9899
CURRENT_TAG=${{ github.ref_name }}
99100
100101
if [ "$PREV_TAG" = "$CURRENT_TAG" ] || [ -z "$PREV_TAG" ]; then
101-
# First release — use all commits
102102
COMMITS=$(git log --pretty=format:"- %s" HEAD)
103103
else
104104
COMMITS=$(git log --pretty=format:"- %s" "${PREV_TAG}..${CURRENT_TAG}")
105105
fi
106106
107-
# Build release body
108107
cat <<BODY > release_notes.md
109108
## What's New
110109
@@ -127,6 +126,10 @@ jobs:
127126
\`\`\`bash
128127
xattr -cr /Applications/anyscp.app
129128
\`\`\`
129+
130+
## Auto-Updates
131+
132+
Already have AnySCP installed? Go to **Settings > Updates** and click **Check** to update in-app.
130133
BODY
131134
132135
- name: Update release body

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@tauri-apps/api": "^2",
1414
"@tauri-apps/plugin-dialog": "^2.6.0",
1515
"@tauri-apps/plugin-opener": "^2",
16+
"@tauri-apps/plugin-updater": "^2.10.0",
1617
"@xterm/addon-fit": "^0.11.0",
1718
"@xterm/addon-search": "^0.16.0",
1819
"@xterm/addon-webgl": "^0.19.0",

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)