electron / electron/windows-installer
Question: how to build separate windows installer based on architecture? why no arch option is given?
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 267
- Avg merge
- 5h 38m
- Merged PRs (30d)
- 1
Description
Hi,
I used electron-packager packed two separate folder, one is for windows 32-bit, another is for windows 64-bit.
**Questions:**
When use this package to build the installer for each architecture,
1. what's the correct syntax should be? Why no arch option is given?
2. can they run parallel?
3. if want to debug this package, `DEBUG=electron-windows-installer:main node tasks/electron-winstaller.js` works in the command line.
If I want to use an npm command to run it, it doesn't work.
`scripts: {"build": "DEBUG=electron-windows-installer:main node tasks/electron-winstaller.js"}`
I tried the below code but doesn't work, it can only create one installer.
```
var electronInstaller = require('electron-winstaller');
resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: '/tmp/build/my-app-64',
outputDirectory: '/tmp/build/installer64',
authors: 'My App Inc.',
exe: 'myapp.exe'
},
{
appDirectory: '/tmp/build/my-app-32',
outputDirectory: '/tmp/build/installer32',
authors: 'My App Inc.',
exe: 'myapp.exe'
});
resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
```
Compared [electron-windows-installer](https://github.com/Aluxian/electron-windows-installer) with this package:
it has arch option, and can use gulp to schedule two parallel task to creating windows 32-bit and 64-bit installer at the same time, it is more efficient.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.