1
Fork 0
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:
RGBCube 2023-12-21 15:51:37 +03:00
parent 7410e1f929
commit 397e666ced
No known key found for this signature in database

View file

@ -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");
}