diff --git a/Cargo.lock b/Cargo.lock index dac2be9bb..d6a040f40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -216,9 +216,9 @@ dependencies = [ [[package]] name = "axoupdater" -version = "0.8.2" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a70b7d3a9ea86ef8d17dada23f2c42518ed4b75dd6a8ff761f8988b448db8454" +checksum = "bc194af960a8ddbc4f28be3fa14f8716aa22141fe40bf1762ae0948defadcce4" dependencies = [ "axoasset", "axoprocess", @@ -230,7 +230,7 @@ dependencies = [ "self-replace", "serde", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.8", "url", ] diff --git a/Cargo.toml b/Cargo.toml index a54576235..200c69a20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ axoproject = { version = "=0.26.1", path = "axoproject", default-features = fals # first-party deps axocli = { version = "0.2.0" } -axoupdater = { version = "0.8.2" } +axoupdater = { version = "0.9.0" } axotag = "0.2.0" axoasset = { version = "1.2.0", features = ["json-serde", "toml-serde", "toml-edit", "yaml-serde", "compression", "remote"] } axoprocess = { version = "0.2.0" } diff --git a/cargo-dist/src/lib.rs b/cargo-dist/src/lib.rs index f25ce8dca..b82f5ee1e 100644 --- a/cargo-dist/src/lib.rs +++ b/cargo-dist/src/lib.rs @@ -255,7 +255,7 @@ fn run_build_step( } const AXOUPDATER_ASSET_ROOT: &str = "https://github.com/axodotdev/axoupdater/releases"; -const AXOUPDATER_MINIMUM_VERSION: &str = "0.7.0"; +const AXOUPDATER_MINIMUM_VERSION: &str = "0.9.0"; fn axoupdater_latest_asset_root() -> String { format!("{AXOUPDATER_ASSET_ROOT}/latest/download") diff --git a/cargo-dist/templates/installer/installer.ps1.j2 b/cargo-dist/templates/installer/installer.ps1.j2 index 853a82283..98a2b063e 100644 --- a/cargo-dist/templates/installer/installer.ps1.j2 +++ b/cargo-dist/templates/installer/installer.ps1.j2 @@ -72,7 +72,11 @@ if ($env:INSTALLER_DOWNLOAD_URL) { $receipt = @" {{ receipt | tojson }} "@ -$receipt_home = "${env:LOCALAPPDATA}\{{ app_name }}" +if ($env:XDG_CONFIG_HOME) { + $receipt_home = "${env:XDG_CONFIG_HOME}\{{ app_name }}" +} else { + $receipt_home = "${env:LOCALAPPDATA}\{{ app_name }}" +} if ($env:{{ env_vars.disable_update_env_var }}) { $install_updater = $false diff --git a/cargo-dist/templates/installer/installer.sh.j2 b/cargo-dist/templates/installer/installer.sh.j2 index 9a9ab1599..0e4f092c7 100644 --- a/cargo-dist/templates/installer/installer.sh.j2 +++ b/cargo-dist/templates/installer/installer.sh.j2 @@ -54,7 +54,7 @@ fi read -r RECEIPT <