-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.js
71 lines (68 loc) · 1.76 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
const path = require('path');
const fs = require('fs');
const packageJson = require('./package.json');
const {version} = packageJson;
const iconDir = path.resolve(__dirname, 'src', 'assets', 'img');
const config = {
packagerConfig: {
name: 'PDS Viewer',
executableName: 'pds-viewer',
asar: true,
icon: path.resolve(__dirname, 'src', 'assets', 'img', 'logo'),
appBundleId: 'sh.lrk.pds',
appCategoryType: 'public.app-category.education',
win32metadata: {
CompanyName: 'PDS Viewer Contributors',
OriginalFilename: 'PDS Viewer',
}
},
makers: [
{
name: '@electron-forge/maker-squirrel',
platforms: ['win32'],
config: (arch) => {
return {
name: 'pds-viewer',
authors: 'PDS Viewer Contributors',
exe: 'pds-viewer.exe',
iconUrl: 'https://raw.githubusercontent.com/lfuelling/pds-viewer/d38a2ce1271a7872f8f966f78e5c21b83874207d/src/assets/img/favicon.ico',
noMsi: true,
setupExe: `pds-viewer-${version}-win32-${arch}-setup.exe`,
setupIcon: path.resolve(iconDir, 'favicon.ico'),
};
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
platforms: ['linux'],
config: {
icon: {
scalable: path.resolve(iconDir, 'logo.svg'),
},
},
},
{
name: '@electron-forge/maker-rpm',
platforms: ['linux'],
},
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'electron',
name: 'fiddle',
},
draft: true,
prerelease: false,
},
},
],
};
// Finally, export it
module.exports = config;