1 changed files with 0 additions and 25 deletions
@ -1,25 +0,0 @@
|
||||
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') |
||||
}) |
||||
} |
Loading…
Reference in new issue