-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
MacOs: Fail to delete .asar
files.
#106
Comments
Can you include the error stack trace? |
No, |
I think it fails to delete files that their names start with a dot (for instance: |
As requested I want to add some more context to the issue. |
After writing the lines above I was able to find the solution in the electron docs which state that I was able to get everything working with the following lines: process.noAsar = true;
await del(pathToExecutable, {
force: true
});
process.noAsar = false; |
life saver! |
Attempting to use
del
to remove.app
files of electron apps fails withENOTEMPTY
for.asar
files only.Currently I'm working around this manually invoking
rm
on mac for those files prior to a fulldel
on the target app file. I assume it's something to do with.asar
files being treated somewhat as folder on Mac?(I havent tested the behaviour on other platforms as yet).
The text was updated successfully, but these errors were encountered: