-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Question about files/extraFiles/extraResources #2693
Comments
Im trying to understand where eventually this extra resources being installed. I can package extraResources and see them in dmg file but i don't see this folder anywhere being created on destination machine |
I'm pretty sure its being installed in the temp folder while being run |
I would really like to see a warning when use String or Array String and files are missing also. Is there a way to make electron-builder treat warnings as errors? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's so frustrating that this isn't in the docs. u_u |
@develar can we add this to the docs? |
Thank you for having this issue! It saves me a huge time. Let me try to make a PR for this |
Related: #1912 |
I agree that this part of the documentation is not written very well. I spend a lot of time trying to copy a folder. I was only able to copy a single file. But after reading this thread, I realized I can skip the |
I'm not sure if this is the proper place to write this, so please redirect me elsewhere if necessary. |
version: 20.4.1
I'm having trouble understanding some problems and restrictions that I ran into with files/extraFiles/extraResources configuration. I've read all possible documentations that I could find, and it still isn't clear to me. Please help me understand.
Assuming the following project structure:
/app
is the application that I wish to release as a web application AND package as an electron app./electron
is a packaging helper project that useselectron-builder
; it is also the "app root" forelectron-builder
/electron/pack.js
is a node script that runs theelectron-builder
api.Now the question is, how do I include files from
/app
into the electron app?'../app/**/*'
-- this is a valid relative path. However I don't think "relative" means what I think it means in this case. It seems like "relative" means that the file/directory must be contained within the electron project directory. Please correct me if I'm wrong.NOTE: I discovered the following while I was testing and writing up this issue:
Relative path will only work if you use
Fileset.from
, and it cannot be a glob patternThis works
This doesn't work (
Fileset
+ glob pattern)This doesn't work (relative path without using
Fileset
)I feel this is something that developers should be able to know by reading the documentation, but I had to figure it out through trial and error. Hope this will be useful to others who happen to across the same issue.
The text was updated successfully, but these errors were encountered: