mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +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 Width: | Height: | Size: 15 KiB |
@@ -4,6 +4,12 @@ version = "0.1.0-dev"
|
|||||||
description = "Empowering everyone to host fast and efficient Minecraft servers."
|
description = "Empowering everyone to host fast and efficient Minecraft servers."
|
||||||
edition = "2021"
|
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]
|
[dependencies]
|
||||||
# pumpkin
|
# pumpkin
|
||||||
pumpkin-core = { path = "../pumpkin-core" }
|
pumpkin-core = { path = "../pumpkin-core" }
|
||||||
@@ -65,3 +71,6 @@ simple_logger = { version = "5.0.0", features = ["threads"] }
|
|||||||
|
|
||||||
# commands
|
# commands
|
||||||
async-trait = "0.1.83"
|
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