Skip to content

Commit 22b1b42

Browse files
author
User
committed
feat: 启用自动更新签名功能
- 配置更新公钥 - 启用 createUpdaterArtifacts - GitHub Actions 添加签名环境变量
1 parent bda640e commit 22b1b42

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
uses: tauri-apps/tauri-action@v0
8181
env:
8282
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
84+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
8385
with:
8486
tagName: v${{ github.run_number }}
8587
releaseName: 'LoArchive v${{ github.run_number }}'
@@ -107,3 +109,4 @@ jobs:
107109
<sub>构建时间: ${{ github.event.head_commit.timestamp }}</sub>
108110
releaseDraft: false
109111
prerelease: false
112+
includeUpdaterJson: true

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"type": "embedBootstrapper"
5050
}
5151
},
52-
"createUpdaterArtifacts": false
52+
"createUpdaterArtifacts": true
5353
},
5454
"plugins": {
5555
"shell": {
@@ -59,7 +59,7 @@
5959
"endpoints": [
6060
"https://github.com/Yar1991-Translation/LoArchive/releases/latest/download/latest.json"
6161
],
62-
"pubkey": ""
62+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEY5RTQyN0E5MkVEQzk4NzMKUldSem1Od3VxU2ZrK1ZsMXNUNVJtbDRsWXJVQ0pSMERyL2JCUlVOcjBZbjVza3VFeGY0QjNVVFEK"
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)