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

Update Rust crate axoupdater to 0.9.0 #10115

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 23, 2024

This PR contains the following updates:

Package Type Update Change
axoupdater workspace.dependencies minor 0.8.2 -> 0.9.0

Release Notes

axodotdev/axoupdater (axoupdater)

v0.9.0

Compare Source

This release adds support for XDG_CONFIG_HOME as the location for install
receipts. If this variable is set and the receipt is located within this path,
it overrides the default location of $HOME/.config (Mac and Linux) or
%LOCALAPPDATA% (Windows). Install receipts will be created in this path when
running installers created by dist 0.27.0 or later if XDG_CONFIG_HOME is set.

This release also adds infrastructure to support app renaming when running as
a library. There are two new features:

  • It's now possible to load receipts for alternate app names, not just the one
    that a given instance of AxoUpdater was instantiated for. This can be done
    by running AxoUpdater::load_receipt_for(app_name).
  • It's now possible to change the name a given AxoUpdater instance is for.
    This can be done by running AxoUpdater::set_name(app_name). This can
    override the name that was loaded from an app receipt.

For example, if your app is changing from oldname to newname, you might set
up AxoUpdater like this:

// Instantiate the updater class with the new app name
let mut updater = AxoUpdater::new_for("newname");

// First, try to check for a "newname" receipt
// (this might be a post-rename release)
if updater.load_receipt_as("newname").is_err() {
    // If that didn't work, try again as "oldname"
    if updater
        .load_receipt_as("oldname")
        .map(|updater| updater.set_name("newname"))
        .is_err()
    {
        eprintln!("Unable to load install receipt!");
    }
}

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the internal A refactor or improvement that is not user-facing label Dec 23, 2024
@charliermarsh charliermarsh merged commit 5b3e54d into main Dec 24, 2024
81 checks passed
@charliermarsh charliermarsh deleted the renovate/axoupdater-0.x branch December 24, 2024 13:09
charliermarsh added a commit that referenced this pull request Dec 24, 2024
## Summary

Required peer to #10115.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant