Squirrel.Mac icon indicating copy to clipboard operation
Squirrel.Mac copied to clipboard

Why should I privilege by prompt "An update is ready to install."?

Open mqliutie opened this issue 4 years ago • 0 comments

Using electron to update my.app the prompt will be shown.

Beacuse I am a frontend developer, I don't know the code written by OC or C++.

I have searched the check writable code

NSURL *targetURL = NSRunningApplication.currentApplication.bundleURL;

BOOL targetWritable = [self canWriteToURL:targetURL];
BOOL parentWritable = [self canWriteToURL:targetURL.URLByDeletingLastPathComponent];

That means targetWritable or parentWritable is false.

Assuming that my App is in Applications folder named Super built by electron.

I want to know which directory is not writable.

Thanks

mqliutie avatar Dec 29 '21 06:12 mqliutie