-
-
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
Hidden 'dotfiles' within an extraResources folder aren't copied #733
Comments
https://github.com/electron-userland/electron-builder/wiki/Options#file-patterns hidden files are ignored by default I don't want to change defaults — is there magic or not in the pattern, doesn't matter. But yes – |
Okay, that's your call. I don't agree, because I'd expect it to work like
Adding extra filters after the user has given an explicit path seems to go against the wishes of the user. |
Files like |
Couldn't disagree with that. Another factor was that this decreases dev/prod parity - for me it caused a bug that only occurred in production builds. And I can only test a fix by doing a full rebuild. |
Ok. If we will exclude only dot files, but not dot folders, is it ok for you? |
My absolute preferred solution would be: when a folder is explicitly listed as something to copy, only exclude files within that we know are useless in a production build - .DS_Store, thumbs.db, .git, etc. Just checked Xcode's copy command... it does the following-
|
Thanks a lot that you decided to argue your position instead of just workaround only for your project. |
👍 no worries! |
Using electron-builder to build a Mac .app file. My resources include some Python libraries, and they store some files in a folder called
.dylibs
. So the tree looks like (simplified):I've specified the
vendor
folder inextraResources
in my package.json, and everything inside it is copied, except the .dylibs folder. I think its due to the use of minimatch in the copy filter.Currently the workaround is to add another rule in package.json:
I didn't expect this to be needed, though, since I don't expect
glob
to be used when there are no wildcards in the path.Ref: tingbot/tide-electron#42
The text was updated successfully, but these errors were encountered: