build.rs 269 B

123456789101112
  1. extern crate includedir_codegen;
  2. use includedir_codegen::Compression;
  3. use std::env;
  4. fn main() {
  5. let dist_path = env::var("TAURI_DIST_DIR").unwrap();
  6. includedir_codegen::start("ASSETS")
  7. .dir(dist_path, Compression::None)
  8. .build("data.rs")
  9. .unwrap();
  10. }