forked from digimezzo/dopamine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.config.js
72 lines (70 loc) · 1.73 KB
/
electron-builder.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
const { getFullVersion } = require('./get-package-information.js');
const config = {
appId: 'com.digimezzo.dopamine',
productName: 'Dopamine',
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: true,
},
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}`,
desktop: {
Name: 'Dopamine 3',
Terminal: 'false',
},
},
};
module.exports = config;