12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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 = {
- appId: "com.socket-benmark.app",
- productName: "socket-benmark",
- directories: {
- output: "dist",
- buildResources: "buildResources",
- },
- win: {
- // "icon": "buildResources/icon.icns",
- "target": [
- "nsis"
- ]
- },
- nsis: {
- "oneClick": false,
- "perMachine": true,
- "allowToChangeInstallationDirectory": true
- },
- files: [
- "packages/**/dist/**",
- "packages/**/command/**",
- "packages/main/command/**",
- ],
- extraMetadata: {
- version: process.env.VITE_APP_VERSION,
- },
- };
- module.exports = config;
|