From 094194faf31728e1e50b54019c7f239f8d6dec6a Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Tue, 14 Jun 2016 23:31:21 +0900 Subject: [PATCH] Add ia32 windows-installer --- script/installer.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/script/installer.js b/script/installer.js index fa832a0b..49dcc3fe 100644 --- a/script/installer.js +++ b/script/installer.js @@ -4,13 +4,16 @@ const createWindowsInstaller = require('electron-winstaller').createWindowsInsta const path = require('path') const rimraf = require('rimraf') -deleteOutputFolder('x64') - .then(getInstallerConfig) - .then(createWindowsInstaller) - .catch((error) => { - console.error(error.message || error) - process.exit(1) - }) +const archList = ['ia32', 'x64']; +archList.forEach((arch) => { + deleteOutputFolder(arch) + .then(getInstallerConfig) + .then(createWindowsInstaller) + .catch((error) => { + console.error(error.message || error) + process.exit(1) + }) +}) function getInstallerConfig(arch) { const rootPath = path.join(__dirname, '..')