Skip to content

Commit

Permalink
feat: enable auto-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Nijhuis committed Apr 22, 2024
1 parent 1253225 commit 36ecc77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache: "npm"

- name: Install dependencies
run: npm install
Expand Down Expand Up @@ -66,10 +66,11 @@ jobs:
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseBody: 'See the assets to download and install this version.'
releaseName: "v__VERSION__"
releaseBody: "See the assets to download and install this version."
releaseDraft: true
prerelease: false
tauriScript: ./node_modules/.bin/tauri
Expand All @@ -82,10 +83,11 @@ jobs:
SSL_CERT_FILE: 'C:\Program Files\OpenSSL\ca\cacert.pem'
OPENSSL_NO_VENDOR: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseBody: 'See the assets to download and install this version.'
releaseName: "v__VERSION__"
releaseBody: "See the assets to download and install this version."
releaseDraft: true
prerelease: false
tauriScript: ./node_modules/.bin/tauri
8 changes: 8 additions & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
"beforeBuildCommand": "npm run vite:build"
},
"tauri": {
"updater": {
"active": true,
"endpoints": [
"https://www.jet-pilot.app/latest.json"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDVDNUVCM0NBRDZFNzFFOEIKUldTTEh1Zld5ck5lWEx6MEdwZXp4cHBReDR6dUtac3pNUm9GbUxvcFhKS28wOTJQL1BqNkFiN2EK"
}
"macOSPrivateApi": true,
"allowlist": {
"all": true,
Expand Down

0 comments on commit 36ecc77

Please sign in to comment.