~vpzom/lotide

a1ff72a5110b46028030c4e6d96d9bb8e7f232d6 — Colin Reeder a month ago 8117e09
Use MAIN_SEPARATOR in build script to fix build on windows
1 files changed, 4 insertions(+), 2 deletions(-)

M build.rs
M build.rs => build.rs +4 -2
@@ 23,8 23,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

        writeln!(
            out_file,
            r##"StaticMigration {{ tag: r#"{}"#, up: include_str!(r#"{1}/up.sql"#), down: include_str!(r#"{1}/down.sql"#) }},"##,
            tag, path
            r##"StaticMigration {{ tag: r#"{}"#, up: include_str!(r#"{1}{2}up.sql"#), down: include_str!(r#"{1}{2}down.sql"#) }},"##,
            tag,
            path,
            std::path::MAIN_SEPARATOR
        )?;
    }