gwen: Point build script icon path at Gwen asset

This commit is contained in:
yenru0 committed 2026-09-23 01:41:13 +09:00
1 parent b5f0951720
commit e5a89be25c
1 file changed
+1 -17
+1 -17
View File
@@ -219,23 +219,7 @@ fn main() {
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
fn icon_path() -> std::path::PathBuf {
use std::str::FromStr;
let release_channel = option_env!("RELEASE_CHANNEL").unwrap_or("dev");
let channel = match release_channel {
"stable" => "",
"preview" => "-preview",
"nightly" => "-nightly",
"dev" => "-dev",
_ => "-dev",
};
#[cfg(windows)]
let icon = format!("resources/windows/app-icon{}.ico", channel);
#[cfg(not(windows))]
let icon = format!("resources/app-icon{}.png", channel);
std::path::PathBuf::from_str(&icon).unwrap()
std::path::PathBuf::from("resources/app-icon-gwen.png")
}
#[cfg(any(target_os = "linux", target_os = "freebsd"))]