|
@@ -1,6 +1,8 @@
|
|
|
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()}`;
|
|
|
+ const now = new Date();
|
|
|
+ process.env.VITE_APP_VERSION = `${now.getUTCFullYear() - 2000}.${
|
|
|
+ now.getUTCMonth() + 1
|
|
|
+ }.${now.getUTCDate()}-${now.getUTCHours() * 60 + now.getUTCMinutes()}`;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -8,12 +10,27 @@ if (process.env.VITE_APP_VERSION === undefined) {
|
|
|
* @see https://www.electron.build/configuration/configuration
|
|
|
*/
|
|
|
const config = {
|
|
|
+ appId: "com.socket-benmark.app",
|
|
|
+ productName: "socket-benmark",
|
|
|
directories: {
|
|
|
- output: 'dist',
|
|
|
- buildResources: 'buildResources',
|
|
|
+ output: "dist",
|
|
|
+ buildResources: "buildResources",
|
|
|
+ },
|
|
|
+ win: {
|
|
|
+ // "icon": "buildResources/icon.icns",
|
|
|
+ "target": [
|
|
|
+ "nsis"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ nsis: {
|
|
|
+ "oneClick": false,
|
|
|
+ "perMachine": true,
|
|
|
+ "allowToChangeInstallationDirectory": true
|
|
|
},
|
|
|
files: [
|
|
|
- 'packages/**/dist/**',
|
|
|
+ "packages/**/dist/**",
|
|
|
+ "packages/**/command/**",
|
|
|
+ "packages/main/command/**",
|
|
|
],
|
|
|
extraMetadata: {
|
|
|
version: process.env.VITE_APP_VERSION,
|