Please describe your issue:
i have centos 7 64 bit
node v6.10.2
electron-packager hello-win32-ia32_old hello --platform=win32 --arch=ia32 --overwrite --no-prune
using above command i have build but getting below errro
Packaging app for platform win32 ia32 using electron v1.6.8
rcedit.exe failed with exit code 193. wine: Bad EXE format for Z:\usr\libnode_modules\electron-packagernode_modules\rceditbin\rcedit.exe.
**Please provide either a failing minimal testcase (with a link to the code) or detailed steps
[root@aasd electron-quick-start]# npm start
[email protected] start /root/electron-quick-start
electron .
npm ERR! Linux 3.10.0-514.16.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.2
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: electron .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-quick-start package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-quick-start
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron-quick-start
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/electron-quick-start/npm-debug.log
Is this 64-bit wine?
Yes.
On May 25, 2017 11:36 AM, "Mark Lee" notifications@github.com wrote:
Is this 64-bit wine?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/electron-userland/electron-packager/issues/654#issuecomment-303930960,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwhuVpW27MtoFGIPCYyFBp92UlEdmuFks5r9RpGgaJpZM4Nl_5w
.
64-bit wine is not currently supported by node-rcedit, see: https://github.com/electron/node-rcedit/issues/22
Ok...so I need to install wine 32bit in 64bit systems right ?
On May 25, 2017 11:40 AM, "Mark Lee" notifications@github.com wrote:
64-bit wine is not currently supported by node-rcedit, see:
electron/node-rcedit#22 https://github.com/electron/node-rcedit/issues/22
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/electron-userland/electron-packager/issues/654#issuecomment-303931591,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwhudwpokP5ZGA0FPMm630UWRX2xXb8ks5r9RtagaJpZM4Nl_5w
.
Yes.
Okey..thanks.
I will check it
On May 25, 2017 11:42 AM, "Mark Lee" notifications@github.com wrote:
Yes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/electron-userland/electron-packager/issues/654#issuecomment-303931826,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwhuct3lp1FUDZPyUJq3i9io618bLVAks5r9RvBgaJpZM4Nl_5w
.
So I cant build package for 64 bit os right ?
On May 25, 2017 11:47 AM, "Dipen Patel" dipen.ec2010@gmail.com wrote:
Okey..thanks.
I will check itOn May 25, 2017 11:42 AM, "Mark Lee" notifications@github.com wrote:
Yes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/electron-userland/electron-packager/issues/654#issuecomment-303931826,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwhuct3lp1FUDZPyUJq3i9io618bLVAks5r9RvBgaJpZM4Nl_5w
.
No, you can certainly build Windows packages on non-Windows, 64-bit host platforms. In fact, the CI for this project does just that on both macOS and (Ubuntu 14.04) Linux. On Debian/Ubuntu-derived Linux distributions, if you only have wine64 installed, it prints the following instructions to help you install the 32-bit version of wine:
it looks like multiarch needs to be enabled. as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32"
If you need instructions on how to do this for CentOS, I would suggest looking in CentOS-specific support channels.
On Debian/Ubuntu-derived Linux distributions, if you only have wine64 installed, it prints the following instructions
Those are great instructions, but they aren't printed down all failure paths.
% npm run build_win
> [email protected] build_win /home/me/git/LogViewer
> electron-packager . --platform=win32 --arch=x64 --icon=src/assets/images/app.ico --overwrite
Packaging app for platform win32 x64 using electron v6.0.9
WARNING: Found 'electron' but not as a devDependency, pruning anyway
rcedit.exe failed with exit code 193. wine: created the configuration directory '/home/me/.wine'
Could not load wine-gecko. HTML rendering will be disabled.
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/me/.wine' has been updated.
wine: Bad EXE format for Z:\home\me\git\LogViewer\node_modules\rcedit\bin\rcedit.exe.
npm ERR! Linux 5.0.0-27-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build_win"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build_win: `electron-packager . --platform=win32 --arch=x64 --icon=src/assets/images/app.ico --overwrite`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build_win script 'electron-packager . --platform=win32 --arch=x64 --icon=src/assets/images/toshiba.ico --overwrite'.
Exit Code: 1 % cat /etc/debian_version
buster/sid
Most helpful comment
No, you can certainly build Windows packages on non-Windows, 64-bit host platforms. In fact, the CI for this project does just that on both macOS and (Ubuntu 14.04) Linux. On Debian/Ubuntu-derived Linux distributions, if you only have wine64 installed, it prints the following instructions to help you install the 32-bit version of wine:
If you need instructions on how to do this for CentOS, I would suggest looking in CentOS-specific support channels.