From 14d81670eea5748624313833ecadbd4a90509407 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 28 Dec 2021 14:23:09 +0100 Subject: build: Use version from package.json --- .electron-builder.config.js | 8 -------- 1 file changed, 8 deletions(-) (limited to '.electron-builder.config.js') diff --git a/.electron-builder.config.js b/.electron-builder.config.js index 3fa9ab5..71f0686 100644 --- a/.electron-builder.config.js +++ b/.electron-builder.config.js @@ -4,11 +4,6 @@ const { Arch } = require('electron-builder'); const { flipFuses, FuseV1Options, FuseVersion } = require('@electron/fuses'); const { join } = require('path'); -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 @@ -25,9 +20,6 @@ const config = { 'packages/service-inject/dist/**', 'packages/service-preload/dist/**', ], - extraMetadata: { - version: process.env.VITE_APP_VERSION, - }, /** * @param {import('electron-builder').AfterPackContext} context The `electron-builder` context. * @return {Promise} The promise to flip the fuses. -- cgit v1.2.3-54-g00ecf