adopted-ember-addons / ember-electron

:zap: Build, test, compile and package desktop apps with Ember and Electron
https://ember-electron.js.org/
Other
805 stars 109 forks source link

Ember-Electron not packaging under Windows #130

Closed danieledraganti closed 7 years ago

danieledraganti commented 7 years ago

Hello, I have been using Ember-Electron for the past month and so to develop a specific application. While I have been developing using Linux, my application is supposed to run under Windows, so I have been moving all the codebase (via GitHub) to a Windows 10 development machine. When I run the app via ember electron in Windows, it currently launches in development environment and functions correctly. When I decide to package it, though, the process sits on runTopLevelLifecycles: sill install printInstalled. I have tried leaving it work for hours and hours, but it never gets past that step. On Linux though, the app runs and compiles without a problem. Has anyone faced the same issue? Is there a way to get a more verbose output from ember electron:package? Thank you in advance,

Daniele

KalynValentyn commented 7 years ago

Have the same problems with ember electron:package --platform=win32 on Windows 10 Still don't know how to fix it.

debelop13 commented 7 years ago

I have the saaame problem with win7 and win10!!

rodrigo-o commented 7 years ago

Hi! I have the same problem and find a way to fix it, but first of all, my english is bad, and i probably do more steps that needed (new to ember, electron, npm, node and all js world), but in my case this works:

I have Win8.1 64b, and when force --arch=ia32 (and some workarround in the middle of the process), it finally works.

  1. cd to the project and exec npm set npm_config_arch ia32

  2. npm install --arch=ia32 ember-electron --save-dev (i have previously uninstalled it via npm)

  3. i use the ember generator ember g ember-electron

  4. and then reinstall the packages npm install --arch=ia32 electron electron-packager electron-rebuild ember-inspector devtron

  5. finally run the packaging ember electron:package --platform=win32 --arch=ia32

  6. and here is when i have the workarround, it fails with the following:

Built project successfully. Stored in "./tmp/electron-build-tmp/dist".

Copying files into Electron Build folder Copying electron.js Copying package.json Installing production dependencies into Electron Build Package Recompiling native dependencies

Native compilation did not work: Error: ENOENT: no such file or directory, scandir '[path_to_project]\tmp\electron-build-tmp\node_modules'

to continue, manually create an empty node_modules folder in that path and rerun ember electron:package -- platform=win32 --arch=ia32

  1. it works! :

cleaning up... Built project successfully. Stored in "./tmp/electron-build-tmp/dist".

Copying files into Electron Build folder Copying electron.js Copying package.json Installing production dependencies into Electron Build Package Recompiling native dependencies Packaging app for platform win32 ia32 using electron v0.37.5

Hope it helps in the meanwhile

anulman commented 7 years ago

@danidr would you be able to test against the 2.0 beta (i.e. against master)? Curious if this is resolved by using electron-forge.

Instructions are in the FYI section of #147

weedgrease commented 7 years ago

I had a similar issue where it would get stuck while building on Windows at Compiling native dependencies using 1.x. I was not able to build on Windows a single time using 1.x

Using 2.beta, packaging is working for all platforms 😄

anulman commented 7 years ago

Haha thanks @kevingelion! Three.js though... 😉

@danidr @Nortrem @debelop13 I'm going to close this issue for now as I imagine this is resolved in the beta. If you're still having trouble, please please please comment and I / we'll reopen.

(Also, if you need any support installing / setting up beta, feel free to post in #e-electron on the Ember.js Slack group, or ping me directly there @anulman)

v-trof commented 7 years ago

v 2.0 doesn't start on windows due to multiple platform specific (mac) dependencies. yarn declines to install it, installing with npm downloads multiple files that would not run.


Used Windows 10 x64 bit, node v7.3.0

Yarn exits with "error macos-alias@0.2.11: The platform "win32" is incompatible with this module. error Found incompatible module"


Package freezes when using electron-debug as production dependency

pichfl commented 7 years ago

@VsevolodTrofimov I separated your problem into #168 as it doesn't exactly refer to packaging apps but the installation of the addon itself.