Use signing service to sign windows binaries

This commit is contained in:
Dmitry Makarenko 2025-05-21 11:40:16 +03:00
parent d3d18d6f15
commit 3dfd97a830
8 changed files with 55 additions and 51 deletions

View File

@ -20,11 +20,11 @@ inputs:
description: 'Build type. Valid values are: Debug, Release, RelWithDebInfo, MinSizeRel'
required: false
default: RelWithDebInfo
windows_certificate:
description: 'BASE64 of the Windows code signing certificate PFX file'
windows_code_signing_access_key_id:
description: 'Access key ID for the Windows code signing service'
required: false
windows_certificate_password:
description: 'Password for the Windows code signing certificate PFX file'
windows_code_signing_secret_access_key:
description: 'Secret access key for the Windows code signing service'
required: false
apple_codesign_identity:
description: 'Apple code signing identity'

View File

@ -33,12 +33,12 @@ function getMSVCConfiguration() {
throw new Error('Invalid host architecture');
}
const windowsCertificate = core.getInput('windows_certificate');
const windowsCertificatePassword = core.getInput('windows_certificate_password');
const windowsCodeSigningAccessKeyId = core.getInput('windows_code_signing_access_key_id');
const windowsCodeSigningSecretAccessKey = core.getInput('windows_code_signing_secret_access_key');
if (windowsCertificate !== '' && windowsCertificatePassword !== '') {
core.exportVariable('WINDOWS_CERTIFICATE', windowsCertificate);
core.exportVariable('WINDOWS_CERTIFICATE_PASSWORD', windowsCertificatePassword);
if (windowsCodeSigningAccessKeyId !== '' && windowsCodeSigningSecretAccessKey !== '' ) {
core.exportVariable('WINDOWS_CODE_SIGNING_ACCESS_KEY_ID', windowsCodeSigningAccessKeyId);
core.exportVariable('WINDOWS_CODE_SIGNING_SECRET_ACCESS_KEY', windowsCodeSigningSecretAccessKey);
cmakeOptions = [...cmakeOptions, '-Daudacity_perform_codesign=yes'];
}

8
dist/build/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

32
dist/package/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long