mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-21 10:28:59 +02:00
Revert icon embedding to avoid AV false-positive
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 353 KiB |
@@ -1 +0,0 @@
|
||||
1 ICON "resources/app.ico"
|
||||
Reference in New Issue
Block a user