Skip to content

Commit

Permalink
feat: Tauri auto update added
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed Nov 16, 2022
1 parent b4efc81 commit f4e912b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ jobs:
- name: Install app dependencies and build web
run: yarn && yarn build

- name: Build the app
- name: Build release
uses: tauri-apps/tauri-action@v0

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

with:
tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseName: 'Habit Watcher v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
9 changes: 7 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "Habit Watcher",
"version": "0.0.1"
"version": "0.0.3"
},
"tauri": {
"allowlist": {
Expand Down Expand Up @@ -50,7 +50,12 @@
"csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'; frame-src 'self'; object-src 'self'"
},
"updater": {
"active": false
"active": true,
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDNDQTdFNjhCNEI5QzYwMjIKUldRaVlKeExpK2FuUEpWcDVmWVdOc0JVUUZBaFY5aHIvM2k5aVFETFFidDJCbE1tVi9JOFRmSDYK",
"endpoints": [
"https://gist.github.com/n4ze3m/548edf07e2b4fea999830fd013cbbcf2/raw"
]
},
"windows": [
{
Expand Down

0 comments on commit f4e912b

Please sign in to comment.