icloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsapp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
782 B
25 lines
782 B
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller |
|
const path = require('path') |
|
|
|
getInstallerConfig() |
|
.then(createWindowsInstaller) |
|
.catch((error) => { |
|
console.error(error.message || error) |
|
process.exit(1) |
|
}) |
|
|
|
function getInstallerConfig () { |
|
console.log('creating windows installer') |
|
const rootPath = path.join('./') |
|
const outPath = path.join(rootPath, 'release-builds') |
|
|
|
return Promise.resolve({ |
|
appDirectory: path.join(outPath, 'Electron\ tutorial\ app-win32-ia32/'), |
|
authors: 'Christian Engvall', |
|
noMsi: true, |
|
outputDirectory: path.join(outPath, 'windows-installer'), |
|
exe: 'Electron tutorial app.exe', |
|
setupExe: 'ElectronTutorialAppInstaller.exe', |
|
setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'icon.ico') |
|
}) |
|
}
|
|
|