-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
(BROKEN ON MACOS) Binary files lose executable permissions after copy. #771
Comments
Duplicate of #35, feel free to send a PR, what we need - If an asset has |
Don't understand what you are saying, it should be an easy fix. var file = "PATH/TO/FILE"
// Get current permissions
var stats = fs.statSync(file)
var currentPermission = '0' + (stats.mode & parseInt('777', 8)).toString(8);
// Set permissions on copied files
fs.chmodSync(file, currentPermission) |
We can't just run |
Well, the webpack-permissions-plugin is doing a I can only understand that from a perspective where you dont want to automatically set permissions, thats ok, but... Is there any chance of adding a new property to the |
Because this plugin is buggy, it uses Node.js |
Binary file execution is completely broken.
This is my code:
This will throw an EACCES error every time we try to execute binary files.
The files get copied to the desired folder, however they lose all the permissions to be executed via
spawn
orexec
or any other method to execute them.I know it is a issue from your plugin because Ive added a delay before executing the files and quickly copied the files manually before they get executed, this way it works but obviously we cant even package the app this way.
I recommend you take a look at this plugin and fix your own plugin.
Thanks
The text was updated successfully, but these errors were encountered: