From 2eabee08f6e53490dc0903ce3d01179c3e3ade59 Mon Sep 17 00:00:00 2001 From: gaodeng Date: Mon, 23 Sep 2019 14:22:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(mac):=20Invalid=20Bundle=20Identifier=20Ele?= =?UTF-8?q?ctron=20Helper=20(GPU,=20Plugin,=20and=20Rende=E2=80=A6=20(#415?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #4151 --- packages/app-builder-lib/src/electron/electronMac.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-builder-lib/src/electron/electronMac.ts b/packages/app-builder-lib/src/electron/electronMac.ts index 846d5aa971a..f059e387402 100644 --- a/packages/app-builder-lib/src/electron/electronMac.ts +++ b/packages/app-builder-lib/src/electron/electronMac.ts @@ -102,7 +102,7 @@ export async function createMacApp(packager: MacPackager, appOutDir: string, asa function configureHelper(helper: any, postfix: string) { helper.CFBundleExecutable = `${appFilename} Helper ${postfix}` helper.CFBundleDisplayName = `${appInfo.productName} Helper ${postfix}` - helper.CFBundleIdentifier = `${helperBundleIdentifier}.${postfix}` + helper.CFBundleIdentifier = `${helperBundleIdentifier}.${postfix.replace(/[^a-z0-9]/gim, "")}` helper.CFBundleVersion = appPlist.CFBundleVersion }