Add Windows icon
This commit is contained in:
		
							parent
							
								
									02270fb4b0
								
							
						
					
					
						commit
						875948519f
					
				
					 5 changed files with 35 additions and 1 deletions
				
			
		
							
								
								
									
										10
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							|  | @ -1045,6 +1045,7 @@ dependencies = [ | ||||||
|  "specs", |  "specs", | ||||||
|  "specs-derive", |  "specs-derive", | ||||||
|  "spin_sleep", |  "spin_sleep", | ||||||
|  |  "winres", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
|  | @ -2419,6 +2420,15 @@ dependencies = [ | ||||||
|  "x11-dl", |  "x11-dl", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
|  | [[package]] | ||||||
|  | name = "winres" | ||||||
|  | version = "0.1.12" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c" | ||||||
|  | dependencies = [ | ||||||
|  |  "toml", | ||||||
|  | ] | ||||||
|  | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "ws2_32-sys" | name = "ws2_32-sys" | ||||||
| version = "0.2.1" | version = "0.2.1" | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| name = "kroz" | name = "kroz" | ||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
| edition = "2021" | edition = "2021" | ||||||
|  | build = "build.rs" | ||||||
| 
 | 
 | ||||||
| [dependencies] | [dependencies] | ||||||
| bracket-lib = { git = "https://github.com/amethyst/bracket-lib" } | bracket-lib = { git = "https://github.com/amethyst/bracket-lib" } | ||||||
|  | @ -10,4 +11,7 @@ specs-derive = "0.4.1" | ||||||
| cpal = "0.13" | cpal = "0.13" | ||||||
| oddio = "0.5" | oddio = "0.5" | ||||||
| rand = "0.8" | rand = "0.8" | ||||||
| spin_sleep = "1.0" | spin_sleep = "1.0" | ||||||
|  | 
 | ||||||
|  | [target.'cfg(windows)'.build-dependencies] | ||||||
|  | winres = "0.1" | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								build.rs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								build.rs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | ||||||
|  | #[cfg(windows)] | ||||||
|  | extern crate winres; | ||||||
|  | 
 | ||||||
|  | #[cfg(windows)] | ||||||
|  | fn main() { | ||||||
|  |     let mut res = winres::WindowsResource::new(); | ||||||
|  |     res.set_icon("icon.ico"); | ||||||
|  |     res.compile().unwrap(); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #[cfg(unix)] | ||||||
|  | fn main() {} | ||||||
							
								
								
									
										
											BIN
										
									
								
								icon.ico
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								icon.ico
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 4.2 KiB | 
							
								
								
									
										8
									
								
								icon.svg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								icon.svg
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | ||||||
|  | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||||||
|  | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||||||
|  | <svg width="100%" height="100%" viewBox="0 0 128 128" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> | ||||||
|  |     <rect x="0" y="0" width="128" height="128"/> | ||||||
|  |     <g transform="matrix(8.6,0,0,8.6,-211.2,-477.8)"> | ||||||
|  |         <path d="M35,67L36,67L36,59L35,59L35,58L29,58L29,59L28,59L28,67L29,67L29,68L35,68L35,67ZM34,63L30,63L30,64L31,64L31,65L33,65L33,64L34,64L34,63ZM34,60L33,60L33,61L34,61L34,60ZM31,60L30,60L30,61L31,61L31,60Z" style="fill:rgb(255,255,0);"/> | ||||||
|  |     </g> | ||||||
|  | </svg> | ||||||
| After Width: | Height: | Size: 810 B | 
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue