From 36726bea7cd10a1d7f1c1f1251959baf0a7098d9 Mon Sep 17 00:00:00 2001 From: Sam Vente Date: Fri, 11 Feb 2022 12:43:55 +0100 Subject: [PATCH] fix crash in build.rs when installing from source on linux (#1760) --- build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 7df44f1f9..c59dff192 100644 --- a/build.rs +++ b/build.rs @@ -14,7 +14,7 @@ fn generate_pe_header() { } res.set_icon("docs/static/favicon.ico"); res.set("LegalCopyright", ©right); - res.compile().expect("Failed to compile Windows resources!"); + res.compile().expect("Failed to compile Windows resources!"); } fn main() { @@ -29,5 +29,7 @@ fn main() { { return; } - generate_pe_header(); + if cfg!(windows){ + generate_pe_header(); + } }