mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
rerun buil.rs when windows icon changes; added tests about IpVersion and Protocol
This commit is contained in:
4
build.rs
4
build.rs
@@ -12,9 +12,11 @@
|
||||
include!("./src/networking/types/service_query.rs");
|
||||
include!("./src/networking/types/protocol.rs");
|
||||
|
||||
const WINDOWS_ICON_PATH: &str = "./resources/packaging/windows/graphics/sniffnet.ico";
|
||||
const SERVICES_LIST_PATH: &str = "./services.txt";
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed={WINDOWS_ICON_PATH}");
|
||||
println!("cargo:rerun-if-changed={SERVICES_LIST_PATH}");
|
||||
|
||||
set_icon();
|
||||
@@ -25,7 +27,7 @@ fn set_icon() {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
let mut res = winres::WindowsResource::new();
|
||||
res.set_icon("resources/packaging/windows/graphics/sniffnet.ico");
|
||||
res.set_icon(WINDOWS_ICON_PATH);
|
||||
res.compile().unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user