~starkingdoms/starkingdoms

449f8189bdf1261e64f9f197f06df7a55cbd242f — core 2 years ago 6b3395b
fix spacetime bug
1 files changed, 3 insertions(+), 2 deletions(-)

M spacetime_rs/src/commands/docker.rs
M spacetime_rs/src/commands/docker.rs => spacetime_rs/src/commands/docker.rs +3 -2
@@ 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())?
    }