mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
AlasGG
This commit is contained in:
23
webapp/electron-builder.config.js
Normal file
23
webapp/electron-builder.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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,
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user