electron / packager

Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI
https://npm.im/@electron/packager
BSD 2-Clause "Simplified" License
161 stars 17 forks source link

Package an Electron app on an Apple Silicon chip for Windows with Electron Packager #1511

Open El-Tommy opened 1 year ago

El-Tommy commented 1 year ago

I'm using Electron Packager to distribute an application created with Electron. I'm using a Mac with an Apple Silicon chip (M1 to be exact).

The problem is that I also need to distribute this application for Windows x64 and Windows ARM. However, when trying to run the command below, the following error is always returned spawn Unknown system error -86:

npx electron-packager . --overwrite --no-prune --icon=./icon/icon.ico --platform=win32 --arch=x64

I already installed Wine with brew, but the error persists.

welcome[bot] commented 1 year ago

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.