2022-05-05 16:36:36 +08:00
|
|
|
ROOT=$PWD
|
2022-05-05 19:44:00 +08:00
|
|
|
cargo build --release --target=x86_64-pc-windows-gnu
|
2022-05-05 16:36:36 +08:00
|
|
|
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
2022-05-05 19:44:00 +08:00
|
|
|
cp target/x86_64-pc-windows-gnu/release/libpikabinder.a libpikabinder
|
2022-05-05 16:36:36 +08:00
|
|
|
|
|
|
|
cd ../pikaByteCodeGen
|
|
|
|
cp ../pikaCompiler/libpikabinder . -r
|
|
|
|
cp ../../src pikascript/pikascript-core -r
|
2022-05-05 19:44:00 +08:00
|
|
|
|
|
|
|
sh cross-win.sh
|
|
|
|
|
2022-05-05 16:42:24 +08:00
|
|
|
cp pikaByteCodeGen $ROOT/rust-msc-latest-linux
|
|
|
|
cd $ROOT
|
|
|
|
chmod +x rust-msc-latest-linux
|