Advanced file copying not supported for "files". Why?
See original GitHub issue- Version: 10.17.3
- Target: Linux (deb)
I have a shared directory that contains a bunch of common files that we use in all our applications, not just electron. I would like to use it and include it in my code using the build configuration and I noticed that the feature is only supported for extra files and resources but not for the application files configured by the build. I know I can create my own build script that will copy the files, pack the application, then delete them again, but I was wondering why isn’t this feature supported?
{
"from": "../../applications/shared",
"to": "shared",
"filter": ["**/*"]
}
I also tried simply adding the path to the “files” property but it just doesn’t work. I assumed it’s because the path is external to the app directory.
"files": [
"**/*",
"../../applications/shared",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
"!**/node_modules/.bin",
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,test,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}"
]
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Access Denied When Copying Files Windows 10/8/7 - EaseUS
Access Denied When Copying Files Windows 10/8/7 ; 3. Decrypt the File or Folder. Right-click the file or folder, and then click "Properties"....
Read more >[Error Message] 'Can not copy NTFS Additional File Streams ...
This error message is caused by a problem in Windows Vista and Windows Server 2008, as confirmed by Microsoft.
Read more >Copying files exceeding 2 GB fails - Windows Server
It's a known issue. Copying files larger than 2 GB by using this method isn't supported. Resolution. To resolve this issue, use one...
Read more >Use Second Copy as your automatic backup software
Known Issues for Second Copy® automatic backup software designed for Microsoft Windows. ... Log file does not update copied files under certain circumstance....
Read more >Why can't I copy large files over 4GB to my USB flash drive or ...
The exFAT system is not as advanced as NTFS (it does not support file permissions and access control, for example), but it has...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will be supported. For now, please create symlink — it is supported in the just released 11.2.0. E.g. create symlink project dir/foo to your shared resources dir.
Will be fixed in one week as part of electron-compile support.