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:
parent
30bcb1e46f
commit
7410e1f929
11 changed files with 2082 additions and 69 deletions
13
build.rs
Normal file
13
build.rs
Normal 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");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue