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

macos: Add updater support #4464

Merged
merged 6 commits into from Feb 25, 2023
Merged

Conversation

marysaka
Copy link
Contributor

@marysaka marysaka commented Feb 21, 2023

This is a very basic updater but should be enough for now.

As we cannot replace ourself while running (otherwise we could get killed because our codesigning get invalidated), the update flow is a bit different. We use a bash script to replace the application and relaunch it.

I also did a bit of refactoring around to make InstallUpdate more readable.

@marysaka marysaka added gui Related to Ryujinx.Ui miscellaneous Related to some project not listed in labels infra Related to the project infrastructure labels Feb 21, 2023
This is a very basic updater but should be enough for now.
@marysaka
Copy link
Contributor Author

Rebased

Ryujinx.Ava/Modules/Updater/Updater.cs Outdated Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Outdated Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Outdated Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Outdated Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Outdated Show resolved Hide resolved
distribution/macos/updater.sh Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Outdated Show resolved Hide resolved
Ryujinx.Ava/Modules/Updater/Updater.cs Show resolved Hide resolved
Copy link
Member

@TSRBerry TSRBerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updater code lgtm! I only have one small suggestion for the updater script.

distribution/macos/updater.sh Outdated Show resolved Hide resolved
Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
Copy link
Member

@TSRBerry TSRBerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui Related to Ryujinx.Ui infra Related to the project infrastructure miscellaneous Related to some project not listed in labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants