@@ 27,7 27,7 @@ fn _build(img: &str, channel: &str, root: &PathBuf) -> Result<(), Box<dyn Error>
_ => (channel, "starkingdoms.tk")
};
- let mut index_html_path = root.clone().join("client/").join("index.html");
+ let index_html_path = root.clone().join("client/").join("index.html");
let index_html_src = fs::read_to_string(&index_html_path)?;
let index_html_patched = find_and_replace(&index_html_src, &[
@@ 35,7 35,8 @@ fn _build(img: &str, channel: &str, root: &PathBuf) -> Result<(), Box<dyn Error>
])?;
fs::write(&index_html_path, index_html_patched.as_bytes())?;
- fs::write(index_html_path.join(".orig"), index_html_src)?;
+
+ fs::write(root.clone().join("client/").join("index.html.orig"), index_html_src)?;
build_client_prod(vec![], root.clone())?
}