1
Fork 0
mirror of https://github.com/RGBCube/rgbcube.github.io synced 2025-07-26 08:27:44 +00:00

Add nix flake & start working on embedded assets

This commit is contained in:
RGBCube 2023-12-20 23:34:38 +03:00
parent 30bcb1e46f
commit 7410e1f929
No known key found for this signature in database
11 changed files with 2082 additions and 69 deletions

13
build.rs Normal file
View file

@ -0,0 +1,13 @@
use std::process::Command;
fn main() {
Command::new("tar")
.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");
}