mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-03 12:27:41 +08:00
Normalise the bundle id casing from com.cherryai.CherryStudio to com.cherryai.cherrystudio so it follows the dominant lowercase convention used by modern AI tools (Anthropic Claude, OpenAI Codex, Raycast, Docker) and the reverse-DNS norm. macOS LaunchServices is case-insensitive, so this is a no-op on existing installs - bundle-id bound state stays as it was after4439d3b28, and no new breaking-changes entry is needed. Touches the same five definition points as the original rebrand (electron-builder appId, notarize appBundleId, AppUserModelID, selection self-detection, preview workflow replaceAll/appId) plus the breaking-changes doc body. The doc's historical commit-subject reference for4439d3b28deliberately retains its original PascalCase to remain a faithful quote of that commit's subject.
26 lines
706 B
JavaScript
26 lines
706 B
JavaScript
require('dotenv').config()
|
|
const { notarize } = require('@electron/notarize')
|
|
|
|
exports.default = async function notarizing(context) {
|
|
if (context.electronPlatformName !== 'darwin') {
|
|
return
|
|
}
|
|
|
|
if (!process.env.APPLE_ID || !process.env.APPLE_APP_SPECIFIC_PASSWORD || !process.env.APPLE_TEAM_ID) {
|
|
return
|
|
}
|
|
|
|
const appName = context.packager.appInfo.productFilename
|
|
const appPath = `${context.appOutDir}/${appName}.app`
|
|
|
|
await notarize({
|
|
appPath,
|
|
appBundleId: 'com.cherryai.cherrystudio',
|
|
appleId: process.env.APPLE_ID,
|
|
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD,
|
|
teamId: process.env.APPLE_TEAM_ID
|
|
})
|
|
|
|
console.log(' • Notarized app:', appPath)
|
|
}
|