Merge pull request #169 from an-anime-team/next

Release 1.7.1
This commit is contained in:
Observer KRypt0n_ 2024-08-03 10:52:53 +02:00 committed by GitHub
commit 83b9f887a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 51 deletions

View file

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Removed
- Removed `p7zip` dependency
## [1.7.0] - 02.08.2024 ## [1.7.0] - 02.08.2024
### Added ### Added

8
Cargo.lock generated
View file

@ -57,8 +57,8 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
[[package]] [[package]]
name = "anime-game-core" name = "anime-game-core"
version = "1.22.1" version = "1.22.2"
source = "git+https://github.com/an-anime-team/anime-game-core?tag=1.22.1#c9a186da515663e880097de358b0c53fab0f5237" source = "git+https://github.com/an-anime-team/anime-game-core?tag=1.22.2#e3f2c3361bd986e60c8b8e11b0921ac46d6473b8"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bzip2", "bzip2",
@ -82,8 +82,8 @@ dependencies = [
[[package]] [[package]]
name = "anime-launcher-sdk" name = "anime-launcher-sdk"
version = "1.17.2" version = "1.17.3"
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=1.17.2#7911abbdf907b31c0af0a1e735610d85151d8515" source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=1.17.3#1797ac466d1c8815e9ceae528043de66d033368c"
dependencies = [ dependencies = [
"anime-game-core", "anime-game-core",
"anyhow", "anyhow",

View file

@ -19,7 +19,7 @@ glib-build-tools = "0.20"
[dependencies.anime-launcher-sdk] [dependencies.anime-launcher-sdk]
git = "https://github.com/an-anime-team/anime-launcher-sdk" git = "https://github.com/an-anime-team/anime-launcher-sdk"
tag = "1.17.2" tag = "1.17.3"
features = ["all", "star-rail", "star-rail-patch"] features = ["all", "star-rail", "star-rail-patch"]
# path = "../anime-launcher-sdk" # ! for dev purposes only # path = "../anime-launcher-sdk" # ! for dev purposes only

View file

@ -100,34 +100,10 @@ impl SimpleComponent for AboutDialog {
set_release_notes_version: &APP_VERSION, set_release_notes_version: &APP_VERSION,
set_release_notes: &[ set_release_notes: &[
"<p>Added</p>",
"<ul>",
"<li>Added \"Indonesia\" wine language option</li>",
"<li>Added writing of the game's output to the \"game.log\" file in the launcher's folder</li>",
"<li>Respect root \".version\" file for game version parsing</li>",
"<li>Added 2.4.0 voiceovers sizes</li>",
"</ul>",
"<p>Fixed</p>",
"<ul>",
"<li>Fixed \"dwebp\" package name for fedora during initial setup</li>",
"<li>Fixed Discord RPC updates</li>",
"</ul>",
"<p>Changed</p>",
"<ul>",
"<li>Changed background images processing logic</li>",
"<li>Prioritize parsed game version over the API response</li>",
"</ul>",
"<p>Removed</p>", "<p>Removed</p>",
"<ul>", "<ul>",
"<li>Removed \"xdelta3\" dependency</li>", "<li>Removed \"p7zip\" dependency</li>",
"<li>Removed migrate installation feature</li>",
"</ul>" "</ul>"
].join("\n"), ].join("\n"),

View file

@ -68,7 +68,7 @@ impl SimpleAsyncComponent for DependenciesApp {
}, },
gtk::Entry { gtk::Entry {
set_text: "sudo pacman -Syu git p7zip libwebp", set_text: "sudo pacman -Syu git libwebp",
set_editable: false set_editable: false
} }
}, },
@ -85,7 +85,7 @@ impl SimpleAsyncComponent for DependenciesApp {
}, },
gtk::Entry { gtk::Entry {
set_text: "sudo apt install git p7zip-full webp", set_text: "sudo apt install git webp",
set_editable: false set_editable: false
} }
}, },
@ -102,7 +102,7 @@ impl SimpleAsyncComponent for DependenciesApp {
}, },
gtk::Entry { gtk::Entry {
set_text: "sudo dnf install git p7zip libwebp-tools", set_text: "sudo dnf install git libwebp-tools",
set_editable: false set_editable: false
} }
}, },
@ -119,10 +119,6 @@ impl SimpleAsyncComponent for DependenciesApp {
set_title: "git" set_title: "git"
}, },
adw::ActionRow {
set_title: "p7zip"
},
adw::ActionRow { adw::ActionRow {
set_title: "libwebp" set_title: "libwebp"
} }
@ -206,18 +202,6 @@ 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); sender.output(Self::Output::ScrollToDefaultPaths);
} }

View file

@ -105,8 +105,7 @@ impl SimpleAsyncComponent for TosWarningApp {
"continue" => { "continue" => {
let installed = let installed =
is_available("git") && is_available("git") &&
is_available("dwebp") && is_available("dwebp");
(is_available("7z") || is_available("7za"));
if installed { if installed {
sender.output(Self::Output::ScrollToDefaultPaths); sender.output(Self::Output::ScrollToDefaultPaths);