From 2ac0ae1bcc115219116e193dd430189b1b43a35e Mon Sep 17 00:00:00 2001 From: buckn Date: Wed, 27 Dec 2023 11:12:00 -0500 Subject: [PATCH] fixed build script --- build.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 7cf98a3..e3c16ec 100644 --- a/build.rs +++ b/build.rs @@ -1,6 +1,5 @@ use std::ffi::OsStr; use std::fs::File; -use std::io::prelude::*; use std::io::Write; use std::path::Path; use std::process::Command; @@ -10,7 +9,7 @@ fn main() -> std::io::Result<()> { //shaders path let shaders = Path::new("./src/shaders"); //shader target path - let out = Command::new("mkdir").arg("target/shaders/").output(); + Command::new("mkdir").arg("target/shaders/").status()?; let shader_target = Path::new("./target/shaders/"); //compile all glsl shaders @@ -28,7 +27,7 @@ fn main() -> std::io::Result<()> { .arg(shader_path) .arg("-o") .arg(shader_file) - .status(); + .status()?; } } //include all compiled shaders in shaders.rs file in src dir