MapDownload-24.12.5-587/.electron-builder.config.js

28 lines
676 B
JavaScript
Raw Permalink Normal View History

2025-07-18 11:39:25 +08:00
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,
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true
}
};
module.exports = config;