feat: add app icon (logo.png for README, icon.ico embedded in Windows exe)
This commit is contained in:
parent
89ab74406f
commit
00380e07f3
3 changed files with 1 additions and 1 deletions
BIN
assets/icon.ico
Normal file
BIN
assets/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
BIN
assets/logo.png
BIN
assets/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 530 KiB After Width: | Height: | Size: 292 KiB |
|
|
@ -12,7 +12,7 @@ fn main() {
|
|||
// Embed Windows icon when cross-compiling for Windows
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
||||
let mut res = winres::WindowsResource::new();
|
||||
res.set_icon("../../assets/logo.ico");
|
||||
res.set_icon("../../assets/icon.ico");
|
||||
// Set cross-compile toolkit (mingw-w64)
|
||||
res.set_toolkit_path("/usr");
|
||||
res.set_windres_path("x86_64-w64-mingw32-windres");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue