mirror of
https://github.com/Pumpkin-MC/Pumpkin
synced 2025-02-18 02:39:08 +00:00
Add icon to windows binary (#257)
* Add icon for windows binary * Add comment to FileDescription FileDescription is handled as the Program name by Windows!
This commit is contained in:
BIN
assets/icon.ico
Normal file
BIN
assets/icon.ico
Normal file
Binary file not shown.
After (image error) Size: 15 KiB |
@ -4,6 +4,12 @@ version = "0.1.0-dev"
|
||||
description = "Empowering everyone to host fast and efficient Minecraft servers."
|
||||
edition = "2021"
|
||||
|
||||
[package.metadata.winresource]
|
||||
# FileDescription is handled as the Program name by Windows!
|
||||
FileDescription = "Pumpkin"
|
||||
OriginalFilename = "pumpkin.exe"
|
||||
LegalCopyright = "Copyright © 2024 Aleksander Medvedev"
|
||||
|
||||
[dependencies]
|
||||
# pumpkin
|
||||
pumpkin-core = { path = "../pumpkin-core" }
|
||||
@ -65,3 +71,6 @@ simple_logger = { version = "5.0.0", features = ["threads"] }
|
||||
|
||||
# commands
|
||||
async-trait = "0.1.83"
|
||||
|
||||
[build-dependencies]
|
||||
winresource = "0.1.17"
|
||||
|
8
pumpkin/build.rs
Normal file
8
pumpkin/build.rs
Normal file
@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
if cfg!(target_os = "windows") {
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon("../assets/icon.ico");
|
||||
res.set_language(0x0009); // English
|
||||
res.compile().unwrap();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user