-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
extraResources get copied to the wrong folder on Linux/Windows #379
Comments
The problem is that you don't understand correctly for what this option is. I will fix docs. We do not copy extra resources into your app, we copy extra resources into your "executable". Why? " As far I see in your pull request (thanks that you decided to contribute), you want to copy files into your js app. Please explain — why you cannot just use these files as part of your app? Please note – your app files should be packed into asar archive due to performance (especially on Windows). And we pack into asar by default. If you want to access some files directly (exec, spawn), you should use |
Feel free to reopen when you will have time to answer. |
Hey @develar, thanks for answering! I'm building my app with webpack so the distinction between 'application source code' and 'built javascript app' is important, and I got confused about which corresponded to the electron-builder 'app' folder (it's the built javascript app). So basically I was packaging up my source code and then trying to copy in the actual app 😄. My working setup now looks like this:
This is a project using a similar setup: https://github.com/xwartz/douban.fm. Would be worth, I think, adding a sentence to the documentation for people with related setups. |
Thank you for detailed answer. So, now there are no issues and all is ok? FYI: #326 (comment) Reopened — must be documented. |
Yep, seems to be working well now! Tested on Mac and Debian so far. On Thursday, May 12, 2016, Vladimir Krivosheev [email protected]
|
Hi, I'm having the same issue with my app. I read the whole Issue and thought it was not useful to create a new one. I'm building an app with the Widevine module and after building on Windows, the extraResources are not located in resources folder. Here is my conf :
The thing that I don't understand, is why on OSX the extraResources are located beside my generated I wanted to use extraResources and not put these files directly in my app folder because I don't want to include others OS libs in my app and I also want to be able to "asar" my app. I can't "asar" my app if I have to include lib in it. |
@jbleuzen If I understand correctly — you get different result using the same configuration on OS X and Windows (you build app for windows on OS X and result is not equal to result if build for windows on Windows)? |
@jbleuzen Ah, I see — your question is why we put extraResources for OS X app into |
Answering the second question : Yes it doesn't look "homogeneous" (if I may use this word).... If the extraResources goes into resources, I don't have this problem... :/ |
Fix:
Will be implemented in the next major release. |
Yes that will be a good implementation... |
@jbleuzen Please try 4.x |
Yes, it works with the 0.4.0 you can close in my opinion ! |
Help wanted. https://github.com/electron-userland/electron-builder/blob/master/CONTRIBUTING.md#documentation |
Thank you very much. |
My code has one package.json in root and the other in release/app/package.json |
I am trying to build a .deb, and the folder that I specify in
extraResources
ends up in the wrong place.Config:
The intermediate packager output looks like
When I install and run the .deb I electron gives me file not found errors looking for
resources/dist/bundle.js
andresources/dist/bundle.css
.The text was updated successfully, but these errors were encountered: