@@ -28,35 +28,12 @@ jobs:
2828 - name : Install dependencies
2929 run : npm ci
3030
31- - name : Import Code Signing Certificate
32- run : |
33- $pfxBytes = [Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}")
34- $pfxPath = "$env:RUNNER_TEMP\certificate.pfx"
35- [IO.File]::WriteAllBytes($pfxPath, $pfxBytes)
36- Import-PfxCertificate -FilePath $pfxPath -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}" -Force -AsPlainText)
37- shell : powershell
38-
3931 - name : Build Frontend
4032 run : npm run build
4133
4234 - name : Build Rust Backend
4335 run : cargo build --release --manifest-path src-tauri/Cargo.toml
4436
45- - name : Sign Executable
46- run : |
47- $signtool = "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe"
48- $thumbprint = "FBA0F34D3439787A5B1767018899E1B510A14E34"
49- $exePath = "src-tauri/target/release/cosmorisk.exe"
50-
51- if (Test-Path $exePath) {
52- & $signtool sign /sha1 $thumbprint /fd sha256 /tr http://timestamp.digicert.com /td sha256 $exePath
53- Write-Host "Signed: $exePath"
54- } else {
55- Write-Error "EXE not found!"
56- exit 1
57- }
58- shell : powershell
59-
6037 - name : Create Release
6138 uses : softprops/action-gh-release@v1
6239 with :
7148 - Jupiter/Mars/Moon gravitational perturbations
7249
7350 ### Download
74- Download `cosmorisk.exe` below and run directly.
75-
76- ### Code Signed
77- Digitally signed by Mehmet Gümüş.
51+ Download `cosmorisk.exe` and run directly.
7852
7953 ### Note
8054 If Windows SmartScreen appears, click "More info" → "Run anyway"
0 commit comments