-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathelectron_builder.js
78 lines (76 loc) · 2.72 KB
/
electron_builder.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// @ts-check
/**
* @type {import('electron-builder').Configuration}
*/
const config = {
appId: "media.bcc.bmm-web",
productName: "BMM",
files: [
{ from: ".output/public", to: "dist-electron", filter: ["**/*"] },
{ from: "electron/icons", to: "dist-electron/icons" },
{ 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: "default",
arch: "x64",
},
{ target: "default", arch: "arm64" },
],
notarize: {
teamId: process.env.APPLE_TEAM_ID || "",
},
},
win: {
target: ["nsis", "zip"],
signingHashAlgorithms: ["sha256"],
sign: "./electron_sign_exe.js",
publisherName: "BCC MEDIA STI",
legalTrademarks: "(C) 2024 BCC MEDIA STI",
},
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",
},
};
// To debug the auto update on Mac, you can right click on BMM.app and "Show package contents".
// Then open Contents/MacOS/BMM, which starts a terminal window with some logs and the BMM app as well.
// The terminal window should give an error message telling you what went wrong.
module.exports = config;