Skip to content

Commit 77fb7ae

Browse files
committed
feat: add GitHub application updater
1 parent 209c0e3 commit 77fb7ae

17 files changed

Lines changed: 770 additions & 40 deletions

‎.github/workflows/release-windows.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Windows
33
on:
44
push:
55
tags:
6-
- "*"
6+
- "v*"
77

88
permissions:
99
contents: write
@@ -36,10 +36,20 @@ jobs:
3636
working-directory: apps/kimi-code
3737
run: pnpm install --frozen-lockfile
3838

39+
- name: Verify tag matches app version
40+
shell: pwsh
41+
run: |
42+
$config = Get-Content apps/kimi-code/src-tauri/tauri.conf.json | ConvertFrom-Json
43+
$expectedTag = "v$($config.version)"
44+
if ("${{ github.ref_name }}" -ne $expectedTag) {
45+
throw "Tag ${{ github.ref_name }} does not match app version $expectedTag"
46+
}
47+
3948
- name: Build and publish Kimi Code
4049
uses: tauri-apps/tauri-action@v1
4150
env:
4251
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
4353
with:
4454
projectPath: apps/kimi-code
4555
tagName: ${{ github.ref_name }}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.idea
33
/apps/kimi-code/node_modules
44
/apps/kimi-code/dist
5+
/.tauri

‎Cargo.lock‎

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

0 commit comments

Comments
 (0)