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

Error while launching packaged app on Windows 10 (Surface) #598

Closed
RilRil opened this issue Jul 18, 2016 · 16 comments
Closed

Error while launching packaged app on Windows 10 (Surface) #598

RilRil opened this issue Jul 18, 2016 · 16 comments
Labels

Comments

@RilRil
Copy link

RilRil commented Jul 18, 2016

Hello, i've got some trouble with Windows 10 ...
I'm packaging for platform windows x64 using electron 1.2.7; electron-builder 5.12.1 on a windows 10 x64.

when I execute the app file in the win-unpacked directory on the machine I packaged on everything is working correctly.
But If I try to execute the same file on a Windows Surface I get this error :
screenshot

the module file (4753.tmp.node) exists ...

any idea ?

@RilRil RilRil changed the title Error Error while launching packaged app on Windows 10 (Surface) Jul 18, 2016
@develar
Copy link
Member

develar commented Jul 18, 2016

Set build.asar to false.

Please see electron/packager#425

@develar
Copy link
Member

develar commented Jul 18, 2016

Do you use native extensions or do you execute external exe?

@RilRil
Copy link
Author

RilRil commented Jul 18, 2016

what do you mean ?

@develar
Copy link
Member

develar commented Jul 18, 2016

Please try to set build.asar to false as temporary workaround.

And

Do you use native extensions or do you execute external exe?

@RilRil
Copy link
Author

RilRil commented Jul 18, 2016

oh ok sorry.
I'am using some native extensions

@RilRil
Copy link
Author

RilRil commented Jul 18, 2016

When I'm packaging I have this message : "Skip app dependencies rebuild because dev and app dependencies are not separated", I dont know if it can be related though ...

@develar
Copy link
Member

develar commented Jul 18, 2016

I dont know if it can be related though

It means that you can build only on the same platform — i.e. you cannot build on Linux on Windows. It is not the reason of the issue (since you build in WIndows).

Asar is the issue, see http://electron.atom.io/docs/latest/tutorial/application-packaging/#limitations-on-node-api/

So, disable asar, and report — does it help you. If helps, please provide sample project (or name of native extensions) and I will try to fix it (such files should be not packed into asar archive). Or you can try to use asar.unpackDir.

@RilRil
Copy link
Author

RilRil commented Jul 18, 2016

With the build.asar option to false I now get the following error :
screenshot

@develar
Copy link
Member

develar commented Jul 18, 2016

Maybe for MS Surface you have to recompile native ext. I cannot help. BTW, is Surface is ARM or x86?

@RilRil
Copy link
Author

RilRil commented Jul 18, 2016

it's x86. ok that's too bad .. I'll try to remove that extension or maybe to recompile on the surface..
thx anyway

@develar
Copy link
Member

develar commented Jul 18, 2016

Is your packaged app works on other Windows machine? You can send me your app and I will try to investigate what is wrong. [email protected]

@RilRil
Copy link
Author

RilRil commented Jul 18, 2016

It works if I execute the packaged app on the machine I packaged it...
Unfortunately I cant send you the app since it belongs to my company.

@develar
Copy link
Member

develar commented Jul 18, 2016

I doubt that Surface is the issue. So, I ask you sample/real project to investigate.

@RilRil
Copy link
Author

RilRil commented Jul 20, 2016

EDIT : I found the problem, a .dll was missing for the native extension to work (libeay32.dll from SSL). So I just added the missing .dll next to the .exe and it worked !

@develar develar closed this as completed Aug 2, 2016
@bordunez
Copy link

bordunez commented Apr 3, 2017

Hi RilRil,
I'm getting a similar problem with a native extension (windows.devices.geolocation), can you give some suggestion in order to find what is the missing .dll dependency in this native extension?

Thanks

@RilRil
Copy link
Author

RilRil commented Apr 4, 2017

Hi @bordunez ,
in my case, the missing library (.lib) was referenced in a file (binding.gyp) of one of my dependancies.

Maybe this could help you : http://stackoverflow.com/questions/33205339/what-dll-is-needed-for-windows-devices-geolocation,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants