Preflight Checklist
Issue Details
- Electron Packager Version:
- Electron Version:
- Operating System:
- Last Known Working Electron Packager version::
Expected Behavior
If the value passed to --extra-resource parameter is a directory instead of a file, the whole directory is copied.
Actual Behavior
If the value passed to --extra-resource parameter (e.g. --extra-resource=out/config) is a directory instead of a file, the command fails with:
Path is a directory: cp returned EISDIR (out/config is a directory (not copied)) out/config
To Reproduce
- Take any project that you package using electron-packager.
- Add a directory out/config with some files and sub-directories.
- Add --extra-resource=out/config to your call of electron-packager.
Additional Information
If we're talking about a low and fixed number of files to copy, it's not a problem to specify --extra-resource for each file individually. But in my case it's a variable number of files and it can easily be several dozen.
Preflight Checklist
Issue Details
Expected Behavior
If the value passed to --extra-resource parameter is a directory instead of a file, the whole directory is copied.
Actual Behavior
If the value passed to --extra-resource parameter (e.g. --extra-resource=out/config) is a directory instead of a file, the command fails with:
Path is a directory: cp returned EISDIR (out/config is a directory (not copied)) out/config
To Reproduce
Additional Information
If we're talking about a low and fixed number of files to copy, it's not a problem to specify --extra-resource for each file individually. But in my case it's a variable number of files and it can easily be several dozen.