Closed ma-sattari closed 4 months ago
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Preflight Checklist
Problem Description
According to file usage.txt when using
extra-resource
option in build time you usefs-extra
package to copy extra resources totarget
folder. However, the attributes of file is cleared after copy operation is done. We have an executable C file with (rwx rwx r--) bits set. When file is copied to target directory executable attribute of file is removed and we are not able to execute it within electron.Proposed Solution
According to this file from Copy Usage
fs-extra
package you may pass apreserveTimestamps
<boolean>
option when callingcopy
function like this: copy(src, dest[, options][, callback]). According to this code snippet copy.js when using this option we may preservemode
in addition toTimestamps
. Updating this code in your repo platform.js and adding thepreserveTimestamps
option will add the capability to preserve bothTimestamps
andmode
in the target directory.Alternatives Considered
Additional Information