diff options
Diffstat (limited to '.electron-builder.config.js')
-rw-r--r-- | .electron-builder.config.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/.electron-builder.config.js b/.electron-builder.config.js index 3fa9ab5..71f0686 100644 --- a/.electron-builder.config.js +++ b/.electron-builder.config.js | |||
@@ -4,11 +4,6 @@ const { Arch } = require('electron-builder'); | |||
4 | const { flipFuses, FuseV1Options, FuseVersion } = require('@electron/fuses'); | 4 | const { flipFuses, FuseV1Options, FuseVersion } = require('@electron/fuses'); |
5 | const { join } = require('path'); | 5 | const { join } = require('path'); |
6 | 6 | ||
7 | if (process.env.VITE_APP_VERSION === undefined) { | ||
8 | const now = new Date; | ||
9 | process.env.VITE_APP_VERSION = `${now.getUTCFullYear() - 2000}.${now.getUTCMonth() + 1}.${now.getUTCDate()}-${now.getUTCHours() * 60 + now.getUTCMinutes()}`; | ||
10 | } | ||
11 | |||
12 | /** | 7 | /** |
13 | * @type {import('electron-builder').Configuration} | 8 | * @type {import('electron-builder').Configuration} |
14 | * @see https://www.electron.build/configuration/configuration | 9 | * @see https://www.electron.build/configuration/configuration |
@@ -25,9 +20,6 @@ const config = { | |||
25 | 'packages/service-inject/dist/**', | 20 | 'packages/service-inject/dist/**', |
26 | 'packages/service-preload/dist/**', | 21 | 'packages/service-preload/dist/**', |
27 | ], | 22 | ], |
28 | extraMetadata: { | ||
29 | version: process.env.VITE_APP_VERSION, | ||
30 | }, | ||
31 | /** | 23 | /** |
32 | * @param {import('electron-builder').AfterPackContext} context The `electron-builder` context. | 24 | * @param {import('electron-builder').AfterPackContext} context The `electron-builder` context. |
33 | * @return {Promise<void>} The promise to flip the fuses. | 25 | * @return {Promise<void>} The promise to flip the fuses. |