This repository is the home of WeirdConstructor's web based Go board. It's mainly for playing AI and analyzing Go/Baduk/Weiqi games. It's written in Rust and JavaScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
538 B

use std::process::Command;
use std::env;
use std::path::Path;
fn main() {
// let out_dir = env::var("OUT_DIR").unwrap();
if cfg!(windows) {
let s = Command::new("cmd").args(&["/C", "_WEBPACK.bat"]).status().unwrap();
if !s.success() { panic!("Webpack failed"); }
} else {
let s = Command::new("node_modules/.bin/webpack").status().unwrap();
if !s.success() { panic!("Webpack failed"); }
std::fs::copy("webdata/dist/index.html", "webdata/index.html").unwrap();
}
}