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

feat: check executable path is suitable #38

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

mistydemeo
Copy link
Contributor

Compare the installation root of the previous version to the location the current executable is being run from. This is now part of the "should an update be performed" check.

Fixes #34.

@mistydemeo mistydemeo force-pushed the compare_binary_path branch from 9af8f27 to aa80181 Compare March 8, 2024 00:28
axoupdater/src/lib.rs Outdated Show resolved Hide resolved
@@ -122,6 +127,7 @@ impl AxoUpdater {

self.source = Some(receipt.source.clone());
self.current_version = Some(receipt.version.to_owned());
self.install_prefix = Some(receipt.install_prefix.to_owned());
Copy link
Contributor

Choose a reason for hiding this comment

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

heh, NOW it gets used (sorry again for messing it up, nice robust code to work around it... hope no one's foolish enough to make bin/bin/)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All good! Since we have to do it for the bin path anyway, it's not a big deal to do it in both places

Compare the installation root of the previous version to the location
the current executable is being run from. This is now part of the
"should an update be performed" check.

Fixes #34.
@mistydemeo mistydemeo force-pushed the compare_binary_path branch from aa80181 to f596a26 Compare March 8, 2024 02:34
@mistydemeo mistydemeo merged commit b07ad79 into main Mar 8, 2024
13 checks passed
@mistydemeo mistydemeo deleted the compare_binary_path branch March 8, 2024 02:40
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

Successfully merging this pull request may close these issues.

Self updater doesn't respect package manager installation if cargo-dist installation occurred before
2 participants