forked from owlbear-rodeo/kenku-fm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forge.config.js
94 lines (92 loc) · 2.2 KB
/
forge.config.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
const path = require("path");
const config = {
packagerConfig: {
executableName: "kenku-fm",
out: "./out",
icon: "./src/assets/icon",
appBundleId: "com.kenku.fm",
},
makers: [
{
name: "@electron-forge/maker-squirrel",
config: {
name: "kenku_fm",
setupIcon: path.join(__dirname, "src", "assets", "setup.ico"),
loadingGif: path.join(__dirname, "src", "assets", "loading.gif"),
},
},
{
name: "@electron-forge/maker-deb",
config: {
name: "kenku_fm",
productName: "Kenku FM",
homepage: "https://kenku.fm",
icon: path.join(__dirname, "src", "assets", "icons", "256x256.png"),
},
},
{
name: "@electron-forge/maker-zip",
platforms: ["linux", "darwin"],
},
{
name: "@electron-forge/maker-rpm",
config: {
name: "kenku_fm",
productName: "Kenku FM",
homepage: "https://kenku.fm",
icon: path.join(__dirname, "src", "assets", "icons", "256x256.png"),
},
},
],
publishers: [
{
name: "@electron-forge/publisher-github",
config: {
repository: {
owner: "owlbear-rodeo",
name: "kenku-fm",
},
prerelease: false,
draft: false,
},
},
],
plugins: [
[
"@electron-forge/plugin-webpack",
{
mainConfig: "./webpack.main.config.js",
renderer: {
config: "./webpack.renderer.config.js",
entryPoints: [
{
html: "./src/index.html",
js: "./src/renderer.ts",
name: "main_window",
preload: {
js: "./src/preload.ts",
},
},
{
html: "./src/player/index.html",
js: "./src/player/renderer.ts",
name: "player_window",
preload: {
js: "./src/player/preload.ts",
},
},
],
},
devContentSecurityPolicy: "",
},
],
[
"@timfish/forge-externals-plugin",
{
externals: ["opusscript", "prism-media"],
includeDeps: true,
},
],
],
};
module.exports = config;