pack: revert electron-builder configuration file extension to js
This commit is contained in:
1 parent
aef17d22bb
commit
2baf326f79
3 files changed
+7
-8
No files matched your search
@@ -0,0 +1,116 @@
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
const baseConfig = {
|
||||
productName: 'Vutron',
|
||||
appId: 'com.vutron.vutron',
|
||||
asar: true,
|
||||
extends: null,
|
||||
compression: 'maximum',
|
||||
artifactName: '${productName} ${version}_${arch}.${ext}',
|
||||
directories: {
|
||||
output: './release/${version}'
|
||||
},
|
||||
mac: {
|
||||
bundleVersion: '1.0',
|
||||
hardenedRuntime: true,
|
||||
gatekeeperAssess: false,
|
||||
notarize: false,
|
||||
icon: 'buildAssets/icons/icon.icns',
|
||||
type: 'distribution',
|
||||
target: [
|
||||
{
|
||||
target: 'dmg',
|
||||
arch: ['x64', 'arm64', 'universal']
|
||||
}
|
||||
]
|
||||
},
|
||||
dmg: {
|
||||
contents: [
|
||||
{
|
||||
x: 410,
|
||||
y: 150,
|
||||
type: 'link',
|
||||
path: '/Applications'
|
||||
},
|
||||
{
|
||||
x: 130,
|
||||
y: 150,
|
||||
type: 'file'
|
||||
}
|
||||
],
|
||||
sign: false
|
||||
},
|
||||
win: {
|
||||
icon: 'buildAssets/icons/icon.ico',
|
||||
target: [
|
||||
{
|
||||
target: 'appx',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
target: 'zip',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
target: 'portable',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
target: 'nsis',
|
||||
arch: 'x64'
|
||||
}
|
||||
]
|
||||
},
|
||||
portable: {
|
||||
artifactName: '${productName} ${version}_${arch} Portable.${ext}'
|
||||
},
|
||||
nsis: {
|
||||
oneClick: true
|
||||
},
|
||||
linux: {
|
||||
executableName: 'vutron',
|
||||
icon: 'buildAssets/icons',
|
||||
category: 'Utility',
|
||||
target: [
|
||||
{
|
||||
target: 'snap',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
target: 'deb',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
target: 'rpm',
|
||||
arch: 'x64'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
dotenv.config()
|
||||
|
||||
baseConfig.copyright = `ⓒ ${new Date().getFullYear()} $\{author}`
|
||||
baseConfig.files = [
|
||||
/* A list of files not to be included in the build. */
|
||||
/*
|
||||
(Required) The files and folders listed below should not be included in the build.
|
||||
*/
|
||||
'dist/**/*',
|
||||
'!docs/**/*',
|
||||
'!tests/**/*',
|
||||
'!release/**/*'
|
||||
]
|
||||
|
||||
// TODO: Notarize for macOS
|
||||
baseConfig.mac.identity = null
|
||||
/* if (process.env.MAC_NOTARIZE === 'true') {
|
||||
baseConfig.afterSign = './buildAssets/builder/notarize.ts'
|
||||
} else {
|
||||
baseConfig.mac.identity = null
|
||||
} */
|
||||
|
||||
export default {
|
||||
...baseConfig
|
||||
}
|
||||
Reference in new issue
Block a user