Release 0.3.0; rustfmt platform.rs and install.rs (#160)

Bumps the workspace version to 0.3.0 for the new features since 0.2.1, and
applies cargo fmt to the two files from #149 that failed CI's format check.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 authored and GitHub committed 2026-10-11 15:49:47 -04:00
1 parent c273a94a9a
commit 41369d3416
4 files changed
+11 -25

No files matched your search

Generated
+6 -6
View File
@@ -276,7 +276,7 @@ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
[[package]]
name = "artcraft-launcher"
version = "0.2.1"
version = "0.3.0"
dependencies = [
"artcraft-launcher-core",
"artcraft-launcher-native",
@@ -298,7 +298,7 @@ dependencies = [
[[package]]
name = "artcraft-launcher-core"
version = "0.2.1"
version = "0.3.0"
dependencies = [
"semver",
"serde",
@@ -307,7 +307,7 @@ dependencies = [
[[package]]
name = "artcraft-launcher-native"
version = "0.2.1"
version = "0.3.0"
dependencies = [
"artcraft-launcher-core",
"dirs 6.0.0",
@@ -325,7 +325,7 @@ dependencies = [
[[package]]
name = "artcraft-launcher-ui-egui"
version = "0.2.1"
version = "0.3.0"
dependencies = [
"artcraft-launcher-core",
"egui",
@@ -341,7 +341,7 @@ dependencies = [
[[package]]
name = "artcraft-launcher-web"
version = "0.2.1"
version = "0.3.0"
dependencies = [
"artcraft-launcher-core",
"artcraft-launcher-ui-egui",
@@ -5799,7 +5799,7 @@ checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9"
[[package]]
name = "xtask"
version = "0.2.1"
version = "0.3.0"
[[package]]
name = "yoke"
+1 -1
View File
@@ -3,7 +3,7 @@ resolver = "3"
members = ["crates/*", "apps/*", "xtask"]
[workspace.package]
version = "0.2.1"
version = "0.3.0"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.90"
+3 -13
View File
@@ -321,16 +321,10 @@ mod tests {
for kind in [PackageKind::AppImage, PackageKind::Deb, PackageKind::Rpm, PackageKind::Flatpak, PackageKind::TarGz] {
let pick_x64 = pick_asset(&multi_arch_release, &["photocraft"], p_x64, &[kind]).map(|(a, _)| a.name.clone());
assert!(
pick_x64.as_deref().unwrap().contains("linux-x86_64"),
"Expected x86_64 asset for {kind:?}, got {pick_x64:?}"
);
assert!(pick_x64.as_deref().unwrap().contains("linux-x86_64"), "Expected x86_64 asset for {kind:?}, got {pick_x64:?}");
let pick_arm64 = pick_asset(&multi_arch_release, &["photocraft"], p_arm64, &[kind]).map(|(a, _)| a.name.clone());
assert!(
pick_arm64.as_deref().unwrap().contains("linux-aarch64"),
"Expected aarch64 asset for {kind:?}, got {pick_arm64:?}"
);
assert!(pick_arm64.as_deref().unwrap().contains("linux-aarch64"), "Expected aarch64 asset for {kind:?}, got {pick_arm64:?}");
}
// On x86_64 Linux, an aarch64-only asset must NEVER match or fall back
@@ -342,11 +336,7 @@ mod tests {
"photocraft-0.5.0-linux-aarch64.tar.gz",
]);
for kind in [PackageKind::AppImage, PackageKind::Deb, PackageKind::Rpm, PackageKind::Flatpak, PackageKind::TarGz] {
assert_eq!(
pick_asset(&arm_only_release, &["photocraft"], p_x64, &[kind]),
None,
"x86_64 must never match an aarch64 asset for {kind:?}"
);
assert_eq!(pick_asset(&arm_only_release, &["photocraft"], p_x64, &[kind]), None, "x86_64 must never match an aarch64 asset for {kind:?}");
}
}
}
+1 -5
View File
@@ -509,11 +509,7 @@ pub(crate) mod linux {
} else {
let stderr = String::from_utf8_lossy(&output.stderr);
let err = stderr.trim();
let err = if err.is_empty() {
String::from_utf8_lossy(&output.stdout).trim().to_string()
} else {
err.to_string()
};
let err = if err.is_empty() { String::from_utf8_lossy(&output.stdout).trim().to_string() } else { err.to_string() };
if err.is_empty() {
Err("Flatpak couldn't install the bundle (it needs the Flathub remote for its runtime)".into())
} else {