Repository navigation
Conversation
wynjamin
reviewed
Nov 13, 2026
sadan4
requested changes
Nov 17, 2026
|
|
||
| // When swizzling a class method, we need to use the metaclass here instead | ||
| let success = class_addMethod(metaclass, swizzled_selector, swizzled_relaunch, method_getTypeEncoding(original_method)); | ||
| assert!(success.as_bool(), "failed to add method"); |
Contributor
There was a problem hiding this comment.
design question: do we want to crash if we can't install persistence or do we want to just log an error and continue
Contributor
Author
There was a problem hiding this comment.
Probably return an error and then have it be logged in the persistence ctor bit. But class_addMethod shouldn't be causing issues in the first place, unless the actual classes are null, for which I've added checks.
sadan4
requested changes
Nov 17, 2026
sadan4
requested changes
Nov 17, 2026
gBasil
force-pushed
the
macos/persistence
branch
from
November 17, 2026 19:03
31861e3 to
e191626
Compare
sadan4
requested changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds persistence for macOS by patching the downloaded app binary before an update is applied.
Also introduces the concept of an Extendify data directory. This would be for storing the native library, js/css (to not have to refetch it on launch), configs, plugins, and whatnot. It's currently only used as part of the persistence system.
macOS install instructions have to be updated. I was thinking of writing an installer to automate this, as installation now consists of injecting the dylib into the binary.