Revert icon embedding to avoid AV false-positive

This commit is contained in:
2026-06-01 05:59:17 +02:00
parent 6828c15628
commit f24f5fd0a7
4 changed files with 3 additions and 33 deletions
-28
View File
@@ -1,28 +0,0 @@
fn main() {
let out_dir = std::env::var("OUT_DIR").unwrap();
let rc_path = "resources/app.rc";
let res_path = format!("{}/app.res", out_dir);
// Try cross-compile windres first, then native windres
let compiled = || -> bool {
for windres in &["x86_64-w64-mingw32-windres", "windres"] {
if std::process::Command::new(windres)
.args(["-I", ".", rc_path, "-O", "coff", "-o", &res_path])
.status()
.map(|s| s.success())
.unwrap_or(false)
{
return true;
}
}
false
};
if compiled() {
// Only link the resource on Windows targets
let target = std::env::var("TARGET").unwrap_or_default();
if target.contains("windows") {
println!("cargo:rustc-link-arg={}", res_path);
}
}
}
+3 -4
View File
@@ -45,10 +45,9 @@ echo " $LINUX_ARCHIVE ($(du -h "$LINUX_ARCHIVE" | cut -f1))"
if [ "$WINDOWS_SKIP" -eq 0 ]; then
WIN_ARCHIVE="builds/notalterra-v${VERSION}-windows-x64.zip"
rm -f "$WIN_ARCHIVE"
cp target/x86_64-pc-windows-gnu/release/notalterra.exe NotAlterra.exe
zip -q "$WIN_ARCHIVE" NotAlterra.exe
rm -f NotAlterra.exe
cp target/x86_64-pc-windows-gnu/release/notalterra.exe notalterra.exe
zip -q "$WIN_ARCHIVE" notalterra.exe
rm -f notalterra.exe
echo " $WIN_ARCHIVE ($(du -h "$WIN_ARCHIVE" | cut -f1))"
fi
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 KiB

-1
View File
@@ -1 +0,0 @@
1 ICON "resources/app.ico"