generated from cawa-93/vite-electron-builder
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.config.js
46 lines (41 loc) · 1023 Bytes
/
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
if (process.env.VITE_APP_VERSION === undefined) {
const now = new Date;
process.env.VITE_APP_VERSION = `${now.getUTCFullYear() - 2000}.${now.getUTCMonth() + 1}.${now.getUTCDate()}-${now.getUTCHours() * 60 + now.getUTCMinutes()}`;
}
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
const config = {
directories: {
output: 'dist',
buildResources: 'buildResources',
},
files: [
'packages/**/dist/**',
],
extraMetadata: {
version: process.env.VITE_APP_VERSION,
},
'appId': 'com.lab2view.erp',
'productName': 'Lab2view ERP',
'copyright': 'Copyright © 2021 lab2view',
// @see https://www.electron.build/configuration/linux
'linux': {
'target': [
'zip',
'AppImage',
'deb',
// 'deb',
// 'snap',
],
},
// 'mac': {
// 'category': 'public.app-category.business',
// 'target': [
// 'zip',
// 'dmg',
// ],
// },
};
module.exports = config;