question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jan 8, 2017

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.

0reactions
develarcommented, Mar 2, 2017

Will be fixed in one week as part of electron-compile support.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found