-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.rs
More file actions
30 lines (26 loc) · 699 Bytes
/
Copy pathbuild.rs
File metadata and controls
30 lines (26 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
extern crate tauri_winres as winres;
fn main() {
let time = vergen::BuildBuilder::default()
.build_timestamp(true)
.use_local(true)
.build()
.unwrap();
vergen::Emitter::default()
.add_instructions(&time)
.unwrap()
.emit()
.unwrap();
#[cfg(windows)]
{
let mut res = winres::WindowsResource::new();
res.set("FileDescription", "Starter of ScreenCapture");
res.set(
"LegalCopyright",
"Copyright (C) Mikachu2333 2025-2026. MIT License.",
);
if let Err(e) = res.compile() {
eprintln!("{e}");
std::process::exit(1);
}
}
}