Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit 184eedd

Browse files
faustbrianclaude
andcommitted
feat: add Azure code signing configuration
Add support for Azure code signing in Electron builder configuration. Includes environment variables for publisher name, endpoint, certificate profile name, and code signing account name. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ef114f3 commit 184eedd

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

resources/js/electron-builder.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { join } from 'path';
21
import { exec } from 'child_process';
2+
import { join } from 'path';
33

44
const appUrl = process.env.APP_URL;
55
const appId = process.env.NATIVEPHP_APP_ID;
@@ -11,6 +11,12 @@ const appVersion = process.env.NATIVEPHP_APP_VERSION;
1111
const appCopyright = process.env.NATIVEPHP_APP_COPYRIGHT;
1212
const deepLinkProtocol = process.env.NATIVEPHP_DEEPLINK_SCHEME;
1313

14+
// Azure signing configuration
15+
const azurePublisherName = process.env.NATIVEPHP_AZURE_PUBLISHER_NAME;
16+
const azureEndpoint = process.env.NATIVEPHP_AZURE_ENDPOINT;
17+
const azureCertificateProfileName = process.env.NATIVEPHP_AZURE_CERTIFICATE_PROFILE_NAME;
18+
const azureCodeSigningAccountName = process.env.NATIVEPHP_AZURE_CODE_SIGNING_ACCOUNT_NAME;
19+
1420
// Since we do not copy the php executable here, we only need these for building
1521
const isWindows = process.argv.includes('--win');
1622
const isLinux = process.argv.includes('--linux');
@@ -78,6 +84,14 @@ export default {
7884
afterSign: 'build/notarize.js',
7985
win: {
8086
executableName: fileName,
87+
...(azurePublisherName && azureEndpoint && azureCertificateProfileName && azureCodeSigningAccountName ? {
88+
azureSignOptions: {
89+
publisherName: azurePublisherName,
90+
endpoint: azureEndpoint,
91+
certificateProfileName: azureCertificateProfileName,
92+
codeSigningAccountName: azureCodeSigningAccountName
93+
}
94+
} : {}),
8195
},
8296
nsis: {
8397
artifactName: appName + '-${version}-setup.${ext}',

0 commit comments

Comments
 (0)