Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Build for Windows on OS X when sourcedir is "." #218

Closed
narayananramu opened this issue Dec 13, 2015 · 18 comments
Closed

Unable to Build for Windows on OS X when sourcedir is "." #218

narayananramu opened this issue Dec 13, 2015 · 18 comments
Labels
blocked 🚫 Depends on another issue either in this project or a dependency's project bug 🐛 build-host:mac 🍎 Running Electron Packager on macOS

Comments

@narayananramu
Copy link

I tried all possible arguments in CLI yet I still get "... and 1 more" while building for Windows on OS X. I have also install rcedit, wine. Can anyone clearly document building for Windows on OS X.

@malept malept added the needs info Issue reporter needs to provide more information for maintainers to take action label Dec 13, 2015
@malept
Copy link
Member

malept commented Dec 13, 2015

Could you please answer the questions in the issue reporting documentation so that we may better help you with your problem?

@narayananramu
Copy link
Author

Electron Packager - 5.1.1
CLI

electron-packager . FooBar --platform=win32 --arch=ia32 --version=0.36.0 --icon=assets/win/icon.ico

Building for Windows on Mac OS X El Capitan

@malept
Copy link
Member

malept commented Dec 13, 2015

What's the exact console output when you run the electron-packager command?

@narayananramu
Copy link
Author

screen shot 2015-12-14 at 2 28 45 am

@malept
Copy link
Member

malept commented Dec 13, 2015

I have never seen that error before. Have you tried building a package for OS X instead? (I want to know if it's specific to Windows as the target platform.)

@narayananramu
Copy link
Author

For OS X it is working perfectly, is there any requirements for building windows package I mean dependencies other than Wine and rcedit for OS X ? Is there any other better documentation/tutorial for the same ?

@martianyi
Copy link

same error here, on OSX if using electron-packager ./ ElectronTest --out=dist --platform=darwin --arch=x64 --version=0.36.7 --asar --overwrite --ignore=node_modules/electron-prebuilt --ignore=node_modules/electron-packager it works fine, but if I use electron-packager . ElectronTest --out=dist --all --asar --overwrite --ignore=node_modules/electron-prebuilt --ignore=node_modules/electron-packager,then it shows

electron-packager . ElectronTest --out=dist --all --asar --overwrite --ignore=node_modules/electron-prebuilt --ignore=node_modules/electron-packager


... and 1 more

and stucks.

I didn't install anything like Wine or rcredit though.

@malept malept added the build-target:windows Bundling an Electron app specifically for Windows label Feb 17, 2016
@malept malept changed the title Unable to Build for Windows on OS X Unable to Build for Windows on OS X when sourcedir is "." Feb 17, 2016
@malept malept added the build-host:mac 🍎 Running Electron Packager on macOS label Feb 17, 2016
@drakmail
Copy link

Have almost same issue:

➜  universal-sms electron-packager . --all
Unable to determine application name or Electron version. Please specify an application name and Electron version.
Cannot find module 'package.json' from '/Users/drakmail/Develop/drakmail'(Properties not found yet: dependencies.electron-prebuilt,devDependencies.electron-prebuilt)
➜  universal-sms pwd
/Users/drakmail/Develop/drakmail/universal-sms
➜  universal-sms ls
bin          db.gdb       index.html   js           main.js      node_modules package.json sender.js    storage.js

@malept
Copy link
Member

malept commented Jul 23, 2016

@drakmail this is a different error, you need to either add the electron-prebuilt module as a dependency in package.json or specify the Electron version as a parameter. (See readme for details)

@drakmail
Copy link

@malept Thanks, it's really helps!

@gvzq
Copy link

gvzq commented Aug 12, 2016

When I followed the instructions by using:
electron-packager . --all
It didn't work! I figured I need to do it manually..

This works in terminal:
electron-packager ./ App --out=dist --platform=all --arch=all --asar --overwrite --ignore=node_modules/electron-prebuilt --ignore=node_modules/electron-packager

@malept
Copy link
Member

malept commented Aug 12, 2016

@gvzq I have a comment and a question:

  • Per the docs, --ignore=node_modules/electron-prebuilt --ignore=node_modules/electron-packager is already ignored by default.
  • Are you saying that you need to type ./ and not . to correctly specify the app's source directory?

@gvzq
Copy link

gvzq commented Aug 12, 2016

Sorry if I wasn't clear. Running electron-packager ./ --all does not execute properly due to a EISDIR error.

electron-app usr$ electron-packager ./ --all
Packaging app for platform linux ia32 using electron v1.3.3
EISDIR: illegal operation on a directory, rename '/var/folders/jk/3cmm8ls96bnc00gfys3vqky80000gn/T/electron-packager/linux-ia32/-linux-ia32/electron' -> '/var/folders/jk/3cmm8ls96bnc00gfys3vqky80000gn/T/electron-packager/linux-ia32/-linux-ia32'

@malept
Copy link
Member

malept commented Aug 12, 2016

@gvzq this is a different error than this GitHub issue, could you please file a separate issue? (Making sure you read our docs on filing bugs and follow the directions in the GitHub issue template) It would be much appreciated.

@gvzq
Copy link

gvzq commented Aug 12, 2016

ok @malept

@kevinsawicki
Copy link
Contributor

kevinsawicki commented Aug 17, 2016

The ... and 1 more message is a bug in nugget, the library used to download Electron, max-mapper/nugget#16

If you make your terminal window bigger then you should see more output about the download and packaging happening.

@malept malept added bug 🐛 blocked 🚫 Depends on another issue either in this project or a dependency's project and removed build-target:windows Bundling an Electron app specifically for Windows needs info Issue reporter needs to provide more information for maintainers to take action labels Aug 17, 2016
@malept
Copy link
Member

malept commented Aug 17, 2016

I'm inclined to close this since this is a dependency bug, then. And there are a bunch of other unrelated issues included in this issue.

@ggojedap
Copy link

I had the same problem with the same error "... and 1 more" trying to package for win32 from Mac. In my case the solution was to add Wine to PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked 🚫 Depends on another issue either in this project or a dependency's project bug 🐛 build-host:mac 🍎 Running Electron Packager on macOS
Projects
None yet
Development

No branches or pull requests

7 participants