Skip to content

Commit 9c7e3b5

Browse files
Merge pull request #1 from Radhikaa-chauhan/feature/windows-code-signing-2
ci: add Windows code signing to desktop release workflow
2 parents 2c04b1f + 7cd178c commit 9c7e3b5

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/Tauri-Release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,39 @@ jobs:
199199
# - Linux: Sign .deb and .AppImage with GPG
200200
# Reference: Issue #631
201201

202+
- name: Decode Windows code signing certificate
203+
if: matrix.os == 'windows-2022'
204+
shell: powershell
205+
run: |
206+
echo "${{ secrets.WINDOWS_CERTIFICATE }}" > cert.b64
207+
certutil -decode cert.b64 circuitverse.pfx
208+
209+
- name: Sign Windows executables
210+
if: matrix.os == 'windows-2022'
211+
shell: powershell
212+
run: |
213+
$exePath = "src-tauri\target\release\CircuitVerse.exe"
214+
215+
if (Test-Path $exePath) {
216+
signtool sign `
217+
/f circuitverse.pfx `
218+
/p "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}" `
219+
/fd SHA256 `
220+
/td SHA256 `
221+
/tr http://timestamp.digicert.com `
222+
$exePath
223+
} else {
224+
Write-Error "CircuitVerse.exe not found at expected path"
225+
exit 1
226+
}
227+
228+
- name: Verify Windows signature
229+
if: matrix.os == 'windows-2022'
230+
shell: powershell
231+
run: |
232+
signtool verify /pa src-tauri\target\release\CircuitVerse.exe
233+
234+
202235
- name: Upload Tauri Build Artifacts
203236
uses: actions/upload-artifact@v4
204237
with:

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ public/simulatorvue/*
2323
*.njsproj
2424
*.sln
2525
*.sw?
26+
27+
# Code signing secrets (DO NOT COMMIT)
28+
*.pfx
29+
*.pfx.b64
30+
*.b64
31+
cert.b64
32+
33+
# Tauri / Rust build output
34+
src-tauri/target/

0 commit comments

Comments
 (0)