diff options
Diffstat (limited to '.electron-builder.config.js')
-rw-r--r-- | .electron-builder.config.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.electron-builder.config.js b/.electron-builder.config.js new file mode 100644 index 0000000..e0f59e7 --- /dev/null +++ b/.electron-builder.config.js | |||
@@ -0,0 +1,25 @@ | |||
1 | // @ts-check | ||
2 | |||
3 | if (process.env.VITE_APP_VERSION === undefined) { | ||
4 | const now = new Date; | ||
5 | process.env.VITE_APP_VERSION = `${now.getUTCFullYear() - 2000}.${now.getUTCMonth() + 1}.${now.getUTCDate()}-${now.getUTCHours() * 60 + now.getUTCMinutes()}`; | ||
6 | } | ||
7 | |||
8 | /** | ||
9 | * @type {import('electron-builder').Configuration} | ||
10 | * @see https://www.electron.build/configuration/configuration | ||
11 | */ | ||
12 | const config = { | ||
13 | directories: { | ||
14 | output: 'dist', | ||
15 | buildResources: 'buildResources', | ||
16 | }, | ||
17 | files: [ | ||
18 | 'packages/**/dist/**', | ||
19 | ], | ||
20 | extraMetadata: { | ||
21 | version: process.env.VITE_APP_VERSION, | ||
22 | }, | ||
23 | }; | ||
24 | |||
25 | module.exports = config; | ||