Skip to content

Commit

Permalink
Merge pull request #182 from an-anime-team/next
Browse files Browse the repository at this point in the history
Release 1.8.2
  • Loading branch information
krypt0nn authored Sep 11, 2024
2 parents 8a66d46 + 5f1ac9d commit faa5611
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 70 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Added support for new game installation format
- Added 7z binary requirement

## [1.8.1] - 02.09.2024

### Fixed
Expand Down
103 changes: 44 additions & 59 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ glib-build-tools = "0.20"

[dependencies.anime-launcher-sdk]
git = "https://github.com/an-anime-team/anime-launcher-sdk"
tag = "1.20.3"
tag = "1.21.0"
features = ["all", "star-rail", "star-rail-patch"]

# path = "../anime-launcher-sdk" # ! for dev purposes only
Expand Down
5 changes: 3 additions & 2 deletions src/ui/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ impl SimpleComponent for AboutDialog {

set_release_notes_version: &APP_VERSION,
set_release_notes: &[
"<p>Fixed</p>",
"<p>Added</p>",

"<ul>",
"<li>Fixed gamescope config file layout</li>",
"<li>Added support for new game installation format</li>",
"<li>Added 7z binary requirement</li>",
"</ul>"
].join("\n"),

Expand Down
26 changes: 21 additions & 5 deletions src/ui/first_run/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SimpleAsyncComponent for DependenciesApp {

gtk::Label {
set_label: &tr!("missing-dependencies-message"),

set_justify: gtk::Justification::Center,
set_wrap: true,
set_margin_top: 32
Expand All @@ -68,7 +68,7 @@ impl SimpleAsyncComponent for DependenciesApp {
},

gtk::Entry {
set_text: "sudo pacman -Syu git libwebp",
set_text: "sudo pacman -Syu git p7zip libwebp",
set_editable: false
}
},
Expand All @@ -85,7 +85,7 @@ impl SimpleAsyncComponent for DependenciesApp {
},

gtk::Entry {
set_text: "sudo apt install git webp",
set_text: "sudo apt install git p7zip-full webp",
set_editable: false
}
},
Expand All @@ -102,7 +102,7 @@ impl SimpleAsyncComponent for DependenciesApp {
},

gtk::Entry {
set_text: "sudo dnf install git libwebp-tools",
set_text: "sudo dnf install git p7zip libwebp-tools",
set_editable: false
}
},
Expand All @@ -119,6 +119,10 @@ impl SimpleAsyncComponent for DependenciesApp {
set_title: "git"
},

adw::ActionRow {
set_title: "p7zip"
},

adw::ActionRow {
set_title: "libwebp"
}
Expand All @@ -130,7 +134,7 @@ impl SimpleAsyncComponent for DependenciesApp {
add = &adw::PreferencesGroup {
set_valign: gtk::Align::Center,
set_vexpand: true,

gtk::Box {
set_orientation: gtk::Orientation::Horizontal,
set_halign: gtk::Align::Center,
Expand Down Expand Up @@ -202,6 +206,18 @@ impl SimpleAsyncComponent for DependenciesApp {
}
}

// 7z sometimes has different binaries
if !is_available("7z") && !is_available("7za") {
sender.output(Self::Output::Toast {
title: tr!("package-not-available", {
"package" = "7z"
}),
description: None
});

return;
}

sender.output(Self::Output::ScrollToDefaultPaths);
}

Expand Down
Loading

0 comments on commit faa5611

Please sign in to comment.