Skip to content

Commit 3d86dc9

Browse files
committed
release: 0.9.0
1 parent 55460ff commit 3d86dc9

File tree

4 files changed

+43
-4
lines changed

4 files changed

+43
-4
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
# Version 0.9.0 (2024-12-19)
2+
3+
This release adds support for `XDG_CONFIG_HOME` as the location for install
4+
receipts. If this variable is set and the receipt is located within this path,
5+
it overrides the default location of `$HOME/.config` (Mac and Linux) or
6+
`%LOCALAPPDATA%` (Windows). Install receipts will be created in this path when
7+
running installers created by dist 0.27.0 or later if `XDG_CONFIG_HOME` is set.
8+
9+
This release also adds infrastructure to support app renaming when running as
10+
a library. There are two new features:
11+
12+
* It's now possible to load receipts for alternate app names, not just the one
13+
that a given instance of `AxoUpdater` was instantiated for. This can be done
14+
by running `AxoUpdater::load_receipt_for(app_name)`.
15+
* It's now possible to change the name a given `AxoUpdater` instance is for.
16+
This can be done by running `AxoUpdater::set_name(app_name)`. This can
17+
override the name that was loaded from an app receipt.
18+
19+
For example, if your app is changing from `oldname` to `newname`, you might set
20+
up `AxoUpdater` like this:
21+
22+
```rust
23+
// Instantiate the updater class with the new app name
24+
let mut updater = AxoUpdater::new_for("newname");
25+
26+
// First, try to check for a "newname" receipt
27+
// (this might be a post-rename release)
28+
if updater.load_receipt_as("newname").is_err() {
29+
// If that didn't work, try again as "oldname"
30+
if updater
31+
.load_receipt_as("oldname")
32+
.map(|updater| updater.set_name("newname"))
33+
.is_err()
34+
{
35+
eprintln!("Unable to load install receipt!");
36+
}
37+
}
38+
```
39+
140
# Version 0.8.2 (2024-12-03)
241

342
This release adds `x86_64-pc-windows-gnu` to the list of targets for which we

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["axoupdater", "axoupdater-cli"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.8.2"
6+
version = "0.9.0"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
homepage = "https://github.com/axodotdev/axoupdater"

axoupdater-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tls_native_roots = ["axoupdater/tls_native_roots"]
1414

1515
[dependencies]
1616
axocli = "0.2.0"
17-
axoupdater = { version = "=0.8.2", path = "../axoupdater", features = ["blocking"] }
17+
axoupdater = { version = "=0.9.0", path = "../axoupdater", features = ["blocking"] }
1818
clap = { version = "4.5.23", features = ["derive"] }
1919

2020
# errors

0 commit comments

Comments
 (0)