File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 /
You can’t perform that action at this time.
0 commit comments