From 7ff577d877fe6b41c5e179c724e7abc24295a2d3 Mon Sep 17 00:00:00 2001 From: Evan BLAUDY Date: Thu, 16 Dec 2021 02:55:06 +0100 Subject: [PATCH] [electron-builder] configure windows targets + remove version with datetime --- electron-builder.config.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/electron-builder.config.js b/electron-builder.config.js index e11aecf..13c2cf4 100644 --- a/electron-builder.config.js +++ b/electron-builder.config.js @@ -1,10 +1,3 @@ -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 config = { appId: 'com.cgwire.kitsupublisher', productName: 'Kitsu publisher', @@ -18,12 +11,17 @@ const config = { 'build_resources/icon.png', 'build_resources/icon.ico' ], - extraMetadata: { - version: process.env.VITE_APP_VERSION - }, linux: { target: ['AppImage', 'deb', 'rpm', 'tar.gz', 'snap'], category: 'Graphics' + }, + win: { + target: ['nsis', 'portable', 'zip', 'msi'], + }, + nsis: { + oneClick: false, + allowToChangeInstallationDirectory: true, + menuCategory: "CGWire" } }