Skip to content

Commit 4349ad9

Browse files
authored
🐛 fix: macos desktop sign (#9400)
1 parent 7d619cc commit 4349ad9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/desktop/electron-builder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ const packageJSON = require('./package.json');
77

88
const channel = process.env.UPDATE_CHANNEL;
99
const arch = os.arch();
10-
const hasAppleCertificate = Boolean(process.env.APPLE_CERTIFICATE_BASE64);
10+
const hasAppleCertificate = Boolean(process.env.CSC_LINK);
1111

1212
console.log(`🚄 Build Version ${packageJSON.version}, Channel: ${channel}`);
1313
console.log(`🏗️ Building for architecture: ${arch}`);
1414

1515
const isNightly = channel === 'nightly';
1616
const isBeta = packageJSON.name.includes('beta');
1717

18-
// https://www.electron.build/code-signing-mac?utm_source=openai#how-to-disable-code-signing-during-the-build-process-on-macos
18+
// https://www.electron.build/code-signing-mac#how-to-disable-code-signing-during-the-build-process-on-macos
1919
if (!hasAppleCertificate) {
2020
// Disable auto discovery to keep electron-builder from searching unavailable signing identities
2121
process.env.CSC_IDENTITY_AUTO_DISCOVERY = 'false';
22-
console.log('⚠️ Apple certificate not found, macOS artifacts will be unsigned.');
22+
console.log('⚠️ Apple certificate link not found, macOS artifacts will be unsigned.');
2323
}
2424

2525
// 根据版本类型确定协议 scheme

0 commit comments

Comments
 (0)