能解决请一杯咖啡 (免费应用,本人不富有)
这是我的打包配置
packagerConfig: {
appBundleId: `ChrisFreeManDev-hotmail.com.${appName}`,
appCopyright: `© ${(new Date()).getFullYear()} ${appName}`,
buildVersion: '8',
executableName: appName,
appCategoryType: 'public.app-category.productivity',
asar: true,
osxUniversal: {
x64ArchFiles: 'leveldown.node',
},
osxSign: {
type: 'distribution',
identity: 'Apple Distribution: MyName (SomeCertID)',
provisioningProfile: './some-production.provisionprofile',
optionsForFile: () => {
return {
hardenedRuntime: true,
entitlements: './entitlements',
}
}
},
icon: './src/resources/icon/AppIcon'
},
rebuildConfig: {},
makers: [
new MakerPKG({
identity: '3rd Party Mac Developer Installer: MyName (SomeCertID)',
install: './out',
name: appName
}, ['mas'])
],
PS 发在 electron 节点没人看,一晚上才 10 个点击😫
appname, electron, somecertid, myName