fix crash in build.rs when installing from source on linux (#1760)
This commit is contained in:
parent
a13279ea39
commit
fd052252f7
6
build.rs
6
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user