SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

electron packager cannot build for windows anymore since upgrading to OSX 10.15 #937

Open neuronflow opened 4 years ago

neuronflow commented 4 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

#

When trying to package on OSX:

Packaging app for platform mas x64 using electron v4.1.4 Packaging app for platform darwin x64 using electron v4.1.4 Packaging app for platform win32 x64 using electron v4.1.4 Packaging app for platform linux x64 using electron v4.1.4 WARNING: signing is required for mas builds. Provide the osx-sign option, or manually sign the app later. Unhandled rejection Error: spawn Unknown system error -86 at ChildProcess.spawn (internal/child_process.js:366:11) at spawn (child_process.js:551:9) at module.exports (/Users/meow/data/phd/phd_projects/pipeline/code/elephant_client/node_modules/rcedit/lib/rcedit.js:47:15) at P (/Users/meow/data/phd/phd_projects/pipeline/code/elephant_client/node_modules/electron-packager/node_modules/pify/index.js:32:6) at new Promise () at /Users/meow/data/phd/phd_projects/pipeline/code/elephant_client/node_modules/electron-packager/node_modules/pify/index.js:6:9 at ret (/Users/meow/data/phd/phd_projects/pipeline/code/elephant_client/node_modules/electron-packager/node_modules/pify/index.js:56:76) at getIconPath.then.icon (/Users/meow/data/phd/phd_projects/pipeline/code/elephant_client/node_modules/electron-packager/win32.js:95:39)

How can I reproduce this problem?

# upgrade to OSX 10.15 type yarn run build

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

hygkui commented 4 years ago

the same problem

and i upgrade the electron-packager to 14.0.6, still not work

thaddeusm commented 4 years ago

As of OSX 10.15, Apple no longer supports 32-bit applications such as Wine, which is used to package apps for Windows.

There is an open issue related to this on the Electron-Builder repo.

After looking for a solution for several days, I tried building it from a Docker image instead on my local machine. It was my first time to ever use Docker but it was simple to accomplish just by following this documentation from Electron-Builder.