Skip to content

Commit

Permalink
Update build process to verify CERT_PATH and CERT_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Aug 31, 2024
1 parent b287d7f commit c10d09f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ jobs:
echo "Generated CERT_PASSWORD: $certPassword"
shell: pwsh

- name: Verify CERT_PATH and CERT_PASSWORD
run: |
if (-not $env:CERT_PATH) {
Write-Error "CERT_PATH is not set."
exit 1
}
if (-not $env:CERT_PASSWORD) {
Write-Error "CERT_PASSWORD is not set."
exit 1
}
echo "CERT_PATH is set to $env:CERT_PATH"
echo "CERT_PASSWORD is set to $env:CERT_PASSWORD"
shell: pwsh

- name: Print Windows Kit Path
run: |
echo "Windows Kit Path: $env:WINDOWS_KIT_PATH"
Expand Down
2 changes: 1 addition & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const config: ForgeConfig = {
packageDescription: 'A simple video converter',
packageVersion: `${version}.1`,
publisher: 'CN=E0D72A6F-3D67-49D6-9EA4-99FAFB4620E5',
devCert: process.env.CERT_PATH || 'tools/certs/dev-cert.pfx',
devCert: process.env.CERT_PATH,
certPass: process.env.CERT_PASSWORD,
windowsKit: process.env.WINDOWS_KIT_PATH,
icon: path.resolve(iconDir, 'icon.ico'),
Expand Down

0 comments on commit c10d09f

Please sign in to comment.