diff --git a/build.rs b/build.rs deleted file mode 100644 index f9b3d26..0000000 --- a/build.rs +++ /dev/null @@ -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); - } - } -} diff --git a/build.sh b/build.sh index 45f6c24..8a3cdc2 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/resources/app.ico b/resources/app.ico deleted file mode 100644 index 86aec24..0000000 Binary files a/resources/app.ico and /dev/null differ diff --git a/resources/app.rc b/resources/app.rc deleted file mode 100644 index 9840ed1..0000000 --- a/resources/app.rc +++ /dev/null @@ -1 +0,0 @@ -1 ICON "resources/app.ico"