| 
									
										
										
										
											2022-09-21 11:28:28 +08:00
										 |  |  | fn main() {
 | 
					
						
							| 
									
										
										
										
											2024-03-04 22:19:18 +08:00
										 |  |  |     #[cfg(windows)]
 | 
					
						
							|  |  |  |     {
 | 
					
						
							| 
									
										
										
										
											2024-03-04 22:55:25 +08:00
										 |  |  |         use std::io::Write;
 | 
					
						
							| 
									
										
										
										
											2024-03-04 22:19:18 +08:00
										 |  |  |         let mut res = winres::WindowsResource::new();
 | 
					
						
							|  |  |  |         res.set_icon("../../res/icon.ico")
 | 
					
						
							|  |  |  |             .set_language(winapi::um::winnt::MAKELANGID(
 | 
					
						
							|  |  |  |                 winapi::um::winnt::LANG_ENGLISH,
 | 
					
						
							|  |  |  |                 winapi::um::winnt::SUBLANG_ENGLISH_US,
 | 
					
						
							|  |  |  |             ))
 | 
					
						
							|  |  |  |             .set_manifest_file("../../res/manifest.xml");
 | 
					
						
							|  |  |  |         match res.compile() {
 | 
					
						
							|  |  |  |             Err(e) => {
 | 
					
						
							|  |  |  |                 write!(std::io::stderr(), "{}", e).unwrap();
 | 
					
						
							|  |  |  |                 std::process::exit(1);
 | 
					
						
							|  |  |  |             }
 | 
					
						
							|  |  |  |             Ok(_) => {}
 | 
					
						
							|  |  |  |         }
 | 
					
						
							| 
									
										
										
										
											2023-09-01 16:12:13 +03:00
										 |  |  |     }
 | 
					
						
							| 
									
										
										
										
											2022-09-21 11:28:28 +08:00
										 |  |  | }
 |