Skip to content

Commit f4e912b

Browse files
committed
feat: Tauri auto update added
1 parent b4efc81 commit f4e912b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ jobs:
3434
- name: Install app dependencies and build web
3535
run: yarn && yarn build
3636

37-
- name: Build the app
37+
- name: Build release
3838
uses: tauri-apps/tauri-action@v0
39-
4039
env:
4140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
42+
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
43+
4244
with:
4345
tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version
44-
releaseName: 'v__VERSION__'
46+
releaseName: 'Habit Watcher v__VERSION__'
4547
releaseBody: 'See the assets to download this version and install.'
4648
releaseDraft: true
4749
prerelease: false

src-tauri/tauri.conf.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"package": {
99
"productName": "Habit Watcher",
10-
"version": "0.0.1"
10+
"version": "0.0.3"
1111
},
1212
"tauri": {
1313
"allowlist": {
@@ -50,7 +50,12 @@
5050
"csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'; frame-src 'self'; object-src 'self'"
5151
},
5252
"updater": {
53-
"active": false
53+
"active": true,
54+
"dialog": true,
55+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDNDQTdFNjhCNEI5QzYwMjIKUldRaVlKeExpK2FuUEpWcDVmWVdOc0JVUUZBaFY5aHIvM2k5aVFETFFidDJCbE1tVi9JOFRmSDYK",
56+
"endpoints": [
57+
"https://gist.github.com/n4ze3m/548edf07e2b4fea999830fd013cbbcf2/raw"
58+
]
5459
},
5560
"windows": [
5661
{

0 commit comments

Comments
 (0)