1 parent
1eec55181d
commit
ae055be9cc
4 files changed
+72
-6
No files matched your search
@@ -46,7 +46,9 @@ uuid.workspace = true
|
||||
egui_kittest.workspace = true
|
||||
tempfile.workspace = true
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
# Unconditional so the icon is also embedded when cross-compiling from Linux
|
||||
# (build.rs checks the *target* OS; only used for Windows targets).
|
||||
[build-dependencies]
|
||||
winresource.workspace = true
|
||||
|
||||
# `cargo bundle --release -p reqlite-app` builds a macOS .app (and .deb).
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=assets/icon.ico");
|
||||
#[cfg(windows)]
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon("assets/icon.ico");
|
||||
|
||||
Reference in new issue
Block a user