mirror of
				https://github.com/RGBCube/rgbcube.github.io
				synced 2025-10-31 15:02:45 +00:00 
			
		
		
		
	Improve build.rs
This commit is contained in:
		
							parent
							
								
									7410e1f929
								
							
						
					
					
						commit
						397e666ced
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								build.rs
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								build.rs
									
										
									
									
									
								
							|  | @ -2,12 +2,12 @@ use std::process::Command; | ||||||
| 
 | 
 | ||||||
| fn main() { | fn main() { | ||||||
|     Command::new("tar") |     Command::new("tar") | ||||||
|         .args(&["cf", "assets.tar", "assets"]) |         .args(["cf", "assets.tar", "assets"]) | ||||||
|         .output() |         .output() | ||||||
|         .expect("Failed to package assets"); |         .expect("Failed to package assets"); | ||||||
| 
 | 
 | ||||||
|     println!("cargo:rerun-if-changed=assets"); |     println!("cargo:rerun-if-changed=assets"); | ||||||
|     println!("cargo:rerun-if-changed=build.rs"); |     println!("cargo:rerun-if-changed=build.rs"); | ||||||
| 
 | 
 | ||||||
|     println!("cargo:rustc-env=ASSETS_PATH={}", "assets.tar"); |     println!("cargo:rustc-env=ASSETS_PATH=assets.tar"); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 RGBCube
						RGBCube