forked from coasys/we
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.config.js
More file actions
34 lines (30 loc) · 956 Bytes
/
electron-builder.config.js
File metadata and controls
34 lines (30 loc) · 956 Bytes
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
/**
* Electron Builder Configuration
*
* Dynamically loads extraResources from the generated seed configuration.
* This allows electron-builder to read the build configuration that was
* generated from we-seed.json by the prebuild script.
*/
import { readFileSync } from 'fs';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Load the generated extraResources configuration
const extraResourcesPath = join(__dirname, 'electron', 'seed-extra-resources.json');
const extraResources = JSON.parse(readFileSync(extraResourcesPath, 'utf8'));
export default {
appId: 'io.weco.electron',
productName: 'WE',
directories: {
output: 'dist-electron',
},
files: ['dist/**/*', 'electron/**/*'],
extraResources,
mac: {
category: 'public.app-category.social-networking',
},
linux: {
target: ['AppImage'],
},
};