-
-
Notifications
You must be signed in to change notification settings - Fork 150
Fix macosx ventura updater #768
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
Conversation
* remove some code duplication regarding prerelease calculation * add upload of the notarized bundle to s3 download bucket * add upload of the notarized bundle to s3 download bucket
* add json to enable autoupdate with the new agent logic * binary output of the archive https://unix.stackexchange.com/questions/3675/how-can-i-get-a-base64-encoded-shax-on-the-cli * workaround to allow darwin-arm64 to autoupdate * parallelize bundle creation and notarization. This will be helpful if/when we decide to build for darwin-arm64. For now this is useful because we do not offer a binary for m1 yet, `runtime.GOARCH` on an m1 machine returns ARM64, so the call for the update file would fail
This is required because the auto-update uses the function warning: 'openApplicationAtURL:configuration:completionHandler:' is only available on macOS 10.15 or newer [-Wunguarded-availability-new]
Codecov ReportBase: 11.25% // Head: 11.33% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #768 +/- ##
==========================================
+ Coverage 11.25% 11.33% +0.07%
==========================================
Files 52 53 +1
Lines 3961 3936 -25
==========================================
Hits 446 446
+ Misses 3460 3435 -25
Partials 55 55
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
adcbfcd
to
a484330
Compare
We just run some e2e test with @cmaglie, That's why the CI is failing. |
This is required for clients upgrading from versions <=1.2.7
c73b2d3
to
097bc2b
Compare
Please check if the PR fulfills these requirements
before creating one)
Implements a new auto-update procedure to handle the new security features of MacOS Ventura.
The old auto-update replaces the Agent executable binary in place, this method does not work anymore because it breaks MacOS Ventura checks for the application's signature.
The new auto-update method replaces the whole
.app
folder.It also uses the MacOS Cocoa SDK function
openApplicationAtURL:url
to restart the app after the upgrade.No