v0.2.8
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-01 20:40:40 +01:00
1 parent cfc74d9db6
commit dacdf9c27d
76 files changed
+5209 -741

No files matched your search

+9 -1
View File
@@ -58,9 +58,11 @@ fn main() {
let out = PathBuf::from(env::var_os("OUT_DIR").expect("OUT_DIR"));
let css_dir = root.join("src/web/css");
let js_dir = root.join("src/web/js");
let theme_bootstrap_path = root.join("src/web/theme-bootstrap.js");
for path in [
root.join("src/web/index.html"),
theme_bootstrap_path.clone(),
root.join("src/web/icons.svg"),
root.join("src/web/i18n/en.json"),
root.join("src/web/i18n/pl.json"),
@@ -70,8 +72,14 @@ fn main() {
let css_bundle = bundle_manifest(&root, &css_dir, &css_dir.join("manifest.txt"), ".css");
let js_bundle = bundle_manifest(&root, &js_dir, &js_dir.join("manifest.txt"), ".js");
let theme_bootstrap = fs::read_to_string(&theme_bootstrap_path)
.unwrap_or_else(|error| panic!("{}: {error}", theme_bootstrap_path.display()));
let asset_id = fnv1a64(&[css_bundle.as_bytes(), js_bundle.as_bytes()]);
let asset_id = fnv1a64(&[
css_bundle.as_bytes(),
js_bundle.as_bytes(),
theme_bootstrap.as_bytes(),
]);
println!("cargo:rustc-env=RUSTBOX_ASSET_ID={asset_id:016x}");
fs::write(out.join("rustbox-ui.css"), css_bundle).expect("write RustBox CSS bundle");