-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from bcc-code/fix-electron-mac-notation
Fix electron mac notarization
- Loading branch information
Showing
3 changed files
with
70 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// @ts-check | ||
/** | ||
* @type {import('electron-builder').Configuration} | ||
*/ | ||
const config = { | ||
appId: "org.brunstad.bmm", | ||
productName: "BMM alpha", | ||
files: [ | ||
{ from: ".output/public", to: "dist-electron", filter: ["**/*"] }, | ||
{ from: "dist-electron", to: "dist-electron", filter: ["**/*"] }, | ||
"package.json", | ||
"!node_modules", | ||
], | ||
directories: { | ||
output: "dist-app", | ||
}, | ||
protocols: [{ name: "Custom BMM", schemes: ["bmm"] }], | ||
mac: { | ||
category: "public.app-category.music", | ||
entitlements: "build/entitlements.mac.plist", | ||
icon: "resources/app.icns", | ||
hardenedRuntime: true, | ||
darkModeSupport: true, | ||
gatekeeperAssess: true, | ||
target: [ | ||
{ | ||
target: "dmg", | ||
arch: "x64", | ||
}, | ||
{ target: "dmg", arch: "arm64" }, | ||
], | ||
notarize: { | ||
teamId: process.env.APPLE_TEAM_ID || "", | ||
}, | ||
}, | ||
win: { | ||
target: ["msi", "zip"], | ||
}, | ||
linux: { | ||
category: "Audio;Player", | ||
desktop: { | ||
Keywords: | ||
"audio;bcc;bmm;brunstad;christian;church;edification;faith;media;music;sermon", | ||
SingleMainWindow: true, | ||
StartupWMClass: "bmm-web", | ||
MimeType: "x-scheme-handler/bmm", | ||
}, | ||
target: ["AppImage", "deb"], | ||
}, | ||
deb: { | ||
packageName: "bmm-web", | ||
// For questions specific to the Debian package, users can e-mail me. | ||
// We don't have an author e-mail in the package.json, otherwise that one would be used. | ||
// For Debian packages such information is mandatory | ||
maintainer: "[email protected]", | ||
depends: ["libnotify4", "libxtst6", "libnss3"], | ||
recommends: [ | ||
// Most XDG supporting desktop distros will use a trigger installed by this package to automatically register the URI scheme handling. | ||
// However, the app RUNs without it, and distros are free to provide a different mechanism (or let the user handle it manually). | ||
// Documentation states: (https://www.debian.org/doc/debian-policy/ch-relationships.html) | ||
// > This declares a strong, but not absolute, dependency. | ||
// > The Recommends field should list packages that would be found together with this one in all but unusual installations. | ||
"desktop-file-utils", | ||
], | ||
packageCategory: "sound", | ||
}, | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters