🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
👷 build: don't sign macos desktop when missing sign secrets (#9379)
YuTengjing20ef12443d40
diff --git a/apps/desktop/electron-builder.js b/apps/desktop/electron-builder.jsindex 202e9c2e95c..1728ee47877 100644--- a/apps/desktop/electron-builder.js+++ b/apps/desktop/electron-builder.js@@ -7,6 +7,7 @@ const packageJSON = require('./package.json');const channel = process.env.UPDATE_CHANNEL;const arch = os.arch();+const hasAppleCertificate = Boolean(process.env.APPLE_CERTIFICATE_BASE64);console.log(`🚄 Build Version ${packageJSON.version}, Channel: ${channel}`);console.log(`🏗️ Building for architecture: ${arch}`);@@ -14,6 +15,13 @@ console.log(`🏗️ Building for architecture: ${arch}`);const isNightly = channel === 'nightly';const isBeta = packageJSON.name.includes('beta');+// https://www.electron.build/code-signing-mac?utm_source=openai#how-to-disable-code-signing-during-the-build-process-on-macos+if (!hasAppleCertificate) {+ // Disable auto discovery to keep electron-builder from searching unavailable signing identities+ process.env.CSC_IDENTITY_AUTO_DISCOVERY = 'false';+ console.log('⚠️ Apple certificate not found, macOS artifacts will be unsigned.');+}+// 根据版本类型确定协议 schemeconst getProtocolScheme = () => {if (isNightly) return 'lobehub-nightly';@@ -87,8 +95,9 @@ const config = {NSMicrophoneUsageDescription: "Application requests access to the device's microphone.",},gatekeeperAssess: false,- hardenedRuntime: true,- notarize: true,+ hardenedRuntime: hasAppleCertificate,+ notarize: hasAppleCertificate,+ ...(hasAppleCertificate ? {} : { identity: null }),target:// 降低构建时间,nightly 只打 dmg// 根据当前机器架构只构建对应架构的包