pakerwreah / Calendr

Menu bar calendar for macOS
MIT License
1.1k stars 47 forks source link

Auto-update fails when Calendr kept at ~/Applications #264

Open PuzzledUser opened 5 days ago

PuzzledUser commented 5 days ago

I keep all third party apps in an Applications folder in my Home folder. This seems to traumatise your update script (irrespective of what I say to your grant permissions prompt — change nothing and select /Applications, or change to ~/Applications).

EDIT: I was on v1.13.3. Mac OS 14.6.1

pakerwreah commented 4 days ago

The update code will abort if you change the path, because it won't have permission to delete the old app.

No matter what you do, it will try to delete from /Applications and will fail because your app is on ~/Applications.

Previously I was just getting the location of your currently running app, but if you move it around, sometimes macOS gatekeeper will put it into quarantine and give me a random path like /Volumes/random-number/Calendr.app, which breaks the entire update process.

I will try to improve this in two ways:

  1. Only fallback to /Applications if the system gives me a "corrupted" path. This will open the save panel in the correct place for you, if nothing goes wrong.
  2. Always try to use the path that you selected. That way if the system messes up you can always select the correct location.