Skip to content

Commit 946ff8a

Browse files
committed
release: 0.9.0
1 parent 03783f1 commit 946ff8a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
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

0 commit comments

Comments
 (0)