mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 14:49:21 +00:00
fix: correct path for icon windows
This commit is contained in:
parent
86d1daee02
commit
9b8e9a26a9
1 changed files with 22 additions and 20 deletions
8
build.rs
8
build.rs
|
@ -10,11 +10,12 @@ fn main() -> std::io::Result<()> {
|
|||
static_vcruntime::metabuild();
|
||||
let mut res = winres::WindowsResource::new();
|
||||
// This sets the icon.
|
||||
res.set_icon("images/icons/icon.ico");
|
||||
res.set_icon("assets/images/icons/icon.ico");
|
||||
// This sets the [Run as Administrator] metadata flag for Windows.
|
||||
// Why do I do this?: [https://github.com/hinto-janai/gupax/tree/main/src#why-does-gupax-need-to-be-admin-on-windows]
|
||||
// TL;DR: Because Windows.
|
||||
res.set_manifest(r#"
|
||||
res.set_manifest(
|
||||
r#"
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
|
@ -24,7 +25,8 @@ fn main() -> std::io::Result<()> {
|
|||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
"#);
|
||||
"#,
|
||||
);
|
||||
res.compile()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue