nxui_build/res.rs
1pub struct ApplicationResource {
2 pub res: winres::WindowsResource
3}
4
5impl ApplicationResource {
6 pub fn new() -> Self {
7 let res = winres::WindowsResource::new();
8 Self {
9 res
10 }
11 }
12
13 pub fn set_file_version(&mut self, version: u64) {
14 self.res.set_version_info(winres::VersionInfo::FILEVERSION,version);
15 }
16
17 pub fn compile(&self) {
18 self.res.compile().unwrap();
19 }
20}