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

Gatekeeper Path Randomization makes life hard #182 #232

Open
steffanhalv opened this issue Oct 31, 2018 · 2 comments
Open

Gatekeeper Path Randomization makes life hard #182 #232

steffanhalv opened this issue Oct 31, 2018 · 2 comments

Comments

@steffanhalv
Copy link

steffanhalv commented Oct 31, 2018

A follow up for #182

The issue was never solved and it creates a big bunch of problems to many of us.

microsoft/vscode#7426

Nothing you can do about it?

The problem still exist on macOS Mojave

@MarshallOfSound
Copy link
Collaborator

@steffanhalv That issue was closed by #186

There is a usable error that you can show your users that tells them how to fix it (move the app to a non-readonly place)

@steffanhalv
Copy link
Author

steffanhalv commented Nov 1, 2018

@MarshallOfSound Sorry, guess I didn't look close enough, but still doesn't solve the problem for me.

Here is a summary for how I got into this and hopefully you have better insights as of where the problem occurs:

1. Creating an electronjs application
2. Using latest electron-updater which uses Squirrel.Mac for autoupdates on mac
3. Creating a build and upload it to the web as a .dmg  in a github release together with a .zip file for autoupdates
4. I download the .dmg and drag it to the application folder
5. Application starts and update is detected and downloads successfully
6. Trying to perform Quit and Install of the new update, which does not work
7. In the log files I find: `Error: Could not create temporary directory: No access`
8. I navigate to `~/Library/Caches/com.myapp.MyApp.ShipIt` and find that its not owned by the user
9. So I run `sudo chown $USER ~/Library/Caches/com.myapp.MyApp.ShipIt` and then the update works

It's just very strange if I have to drag the app out of the application folder, to the desktop and open from there to use the updater. If I drag it to the desktop and back in to the application folder, the error still does persist.

Some says it's a problem with ShipIt, maybe it could be a bug in Electron Updater, I dont know ^^.

I didn't check which user had access to /Caches/com.myapp.MyApp.ShipIt but I guess it was root. At least I was forced to use sudo to make it work.

So I think it has to be either ShipIt or Electron that creates this cache folder as wrong user, and that should not be necessary or am I wrong?

--

Btw.

I did come into issue #182 by reading this issue:
microsoft/vscode#7426 (comment)

They have the same problem like me, where it is stated that this error comes from #182
I'm not sure if thats actually 100% correct.

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

2 participants