mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-07-24 15:37:41 +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() {
|
||||
Command::new("tar")
|
||||
.args(&["cf", "assets.tar", "assets"])
|
||||
.args(["cf", "assets.tar", "assets"])
|
||||
.output()
|
||||
.expect("Failed to package assets");
|
||||
|
||||
println!("cargo:rerun-if-changed=assets");
|
||||
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