-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathelectron-builder.ts
81 lines (79 loc) · 2.17 KB
/
electron-builder.ts
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
import type { Configuration } from "electron-builder";
export const config: Configuration = {
artifactName: "${productName}-${version}-${os}-${arch}.${ext}",
nsis: {
include: "build/installer.nsh",
artifactName: "${productName} Setup ${arch}.${ext}"
},
appId: "io.github.milkshiift.GoofCord",
productName: "GoofCord",
files: [
"!*",
"!node_modules/**/*",
"ts-out",
"package.json",
"LICENSE"
],
linux: {
icon: "build/icon.icns",
category: "Network",
maintainer: "MilkShift",
target: [
{
target: "AppImage",
arch: [
"x64",
"arm64",
"armv7l"
]
}
],
executableArgs: [
"--enable-features=UseOzonePlatform,WaylandWindowDecorations",
"--ozone-platform-hint=auto"
],
desktop: {
entry: {
Name: "GoofCord",
GenericName: "Internet Messenger",
Type: "Application",
Categories: "Network;InstantMessaging;Chat;",
Keywords: "discord;goofcord;electron;chat;",
MimeType: "x-scheme-handler/discord"
}
}
},
win: {
icon: "build/icon.ico",
target: [
{
target: "NSIS",
arch: [
"x64",
"ia32",
"arm64"
]
}
]
},
mac: {
category: "public.app-category.social-networking",
target: [
{
target: "dmg",
arch: [
"x64",
"arm64"
]
}
],
icon: "build/icon.icns",
extendInfo: {
NSMicrophoneUsageDescription: "This app needs access to the microphone",
NSCameraUsageDescription: "This app needs access to the camera",
"com.apple.security.device.audio-input": true,
"com.apple.security.device.camera": true
}
}
};
export default config;