Skip to content

Commit

Permalink
Add electron builder config
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Feb 16, 2024
1 parent 20dab46 commit b750f22
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/electron/electron-builder.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* @see https://www.electron.build/configuration/configuration
*/
{
$schema: 'https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json',
productName: 'PersonalAnalytics',
appId: 'dev.hasel.personalanalytics',
asar: true,
directories: {
output: 'release/${version}'
},
files: [
'dist',
'dist-electron'
],
mac: {
target: [
'dmg'
],
artifactName: '${productName}-Mac-${version}-Installer.${ext}',
publish: {
provider: "github",
owner: "HASEL-UZH",
repo: "PersonalAnalytics",
}
},
win: {
target: [
{
target: 'nsis',
arch: [
'x64'
]
}
],
artifactName: '${productName}-Windows-${version}-Setup.${ext}',
publish: {
provider: "github",
owner: "HASEL-UZH",
repo: "PersonalAnalytics",
}
},
nsis: {
oneClick: false,
perMachine: false,
allowToChangeInstallationDirectory: true,
deleteAppDataOnUninstall: false
},
linux: {
target: [
'AppImage'
],
artifactName: '${productName}-Linux-${version}.${ext}',
publish: {
provider: "github",
owner: "HASEL-UZH",
repo: "PersonalAnalytics",
}
}
}

0 comments on commit b750f22

Please sign in to comment.