-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathelectron-builder.config.js
More file actions
102 lines (99 loc) · 2.74 KB
/
electron-builder.config.js
File metadata and controls
102 lines (99 loc) · 2.74 KB
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
95
96
97
98
99
100
101
102
const { getFullVersion } = require('./get-package-information.js');
const config = {
appId: 'com.digimezzo.dopamine',
productName: 'Dopamine',
snap: {
base: 'core22', // Must match build server (currently Ubuntu 22.04)
grade: 'stable',
confinement: 'strict',
plugs: [
// REQUIRED for Electron desktop apps
'desktop',
'desktop-legacy',
'wayland',
'x11',
'unity7',
'opengl',
'audio-playback',
'browser-support',
'network',
'network-bind',
'gsettings',
'screen-inhibit-control',
// File access
'home',
'removable-media',
],
},
fileAssociations: [
{
name: 'MP3 Files',
description: 'MP3 Files',
ext: 'mp3',
icon: 'build/mp3',
},
{
name: 'FLAC Files',
description: 'FLAC Files',
ext: 'flac',
icon: 'build/flac',
},
{
name: 'OGG Files',
description: 'OGG Files',
ext: 'ogg',
icon: 'build/ogg',
},
{
name: 'M4A Files',
description: 'M4A Files',
ext: 'm4a',
icon: 'build/m4a',
},
{
name: 'OPUS Files',
description: 'OPUS Files',
ext: 'opus',
icon: 'build/opus',
},
{
name: 'WAV Files',
description: 'WAV Files',
ext: 'wav',
icon: 'build/wav',
},
],
nsis: {
shortcutName: 'Dopamine 3',
perMachine: false,
oneClick: false,
deleteAppDataOnUninstall: false,
allowToChangeInstallationDirectory: true,
allowElevation: true,
include: 'build/uninstaller.nsh',
installerSidebar: 'build/Sidebar.bmp',
uninstallerSidebar: 'build/Sidebar.bmp',
},
directories: {
output: 'release',
},
files: ['**/*'],
extraResources: ['LICENSE'],
win: {
target: ['nsis'],
artifactName: `\${productName}-${getFullVersion()}.\${ext}`,
},
mac: {
target: ['dmg'],
artifactName: `\${productName}-${getFullVersion()}.\${ext}`,
},
linux: {
target: ['AppImage', 'deb', 'rpm', 'pacman', 'snap'],
category: 'Audio',
artifactName: `\${productName}-${getFullVersion()}.\${ext}`,
synopsis: 'The audio player that keeps it simple.',
description:
'Dopamine is an elegant audio player which tries to make organizing and listening to music as simple and pretty as possible.',
},
};
module.exports = config;