Skip to content

Commit 3a945bc

Browse files
committed
code signing
1 parent 73fbd22 commit 3a945bc

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/tauri.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,16 @@ jobs:
4747
working-directory: frontend
4848
run: npm install # change this to npm, pnpm or bun depending on which one you use.
4949

50+
- name: install relic
51+
run: go install github.com/sassoftware/relic/v8@latest
52+
5053
- uses: tauri-apps/tauri-action@v0
5154
env:
5255
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5356
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
57+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
58+
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
59+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
5460
with:
5561
projectPath: ./frontend
5662
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.

frontend/src-tauri/relic.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tokens:
2+
azure:
3+
type: azure
4+
5+
keys:
6+
azure:
7+
token: azure
8+
id: https://valovault.vault.azure.net/certificates/valovault

frontend/src-tauri/tauri.conf.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"bundle": {
2727
"active": true,
2828
"createUpdaterArtifacts": true,
29-
"targets": "all",
29+
"targets": "msi",
30+
"windows": {
31+
"signCommand": "relic sign --file %1 --key azure --config relic.conf"
32+
},
3033
"externalBin": [
3134
"..\\..\\backend\\tmp\\valovault-backend"
3235
],

0 commit comments

Comments
 (0)