Skip to content

Commit

Permalink
[electron-builder] configure windows targets + remove version with da…
Browse files Browse the repository at this point in the history
…tetime
  • Loading branch information
EvanBldy committed Dec 16, 2021
1 parent b399ea4 commit 7ff577d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions electron-builder.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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"
}
}

Expand Down

0 comments on commit 7ff577d

Please sign in to comment.