Skip to content
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

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

Open
mqliutie opened this issue Dec 29, 2021 · 0 comments
Open

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

mqliutie opened this issue Dec 29, 2021 · 0 comments

Comments

@mqliutie
Copy link

mqliutie commented Dec 29, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant