2022-05-05 19:48:17 +08:00
|
|
|
ROOT=$PWD
|
|
|
|
|
|
|
|
# clean
|
|
|
|
rm libpikabinder -rf
|
|
|
|
mkdir libpikabinder
|
|
|
|
|
2022-05-05 20:26:03 +08:00
|
|
|
cargo build --release --target=i686-pc-windows-gnu
|
2022-05-05 19:48:17 +08:00
|
|
|
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
2022-05-05 20:26:03 +08:00
|
|
|
cp target/i686-pc-windows-gnu/release/libpikabinder.a libpikabinder
|
2022-05-05 19:48:17 +08:00
|
|
|
|
|
|
|
cd ../pikaByteCodeGen
|
|
|
|
cp ../pikaCompiler/libpikabinder . -r
|
2022-05-05 21:49:58 +08:00
|
|
|
rm pikascript/pikascript-core -r
|
2022-05-05 19:48:17 +08:00
|
|
|
cp ../../src pikascript/pikascript-core -r
|
2022-06-26 22:33:21 +08:00
|
|
|
touch pikascript/pikascript-core/keep
|
2022-05-05 19:48:17 +08:00
|
|
|
|
|
|
|
sh cross-win.sh
|
|
|
|
|
2022-09-02 00:37:48 +08:00
|
|
|
cp build-win/pikaByteCodeGen.exe $ROOT/rust-msc-latest-win10.exe
|
2022-05-05 19:48:17 +08:00
|
|
|
cd $ROOT
|
2022-10-01 18:47:31 +08:00
|
|
|
strip -s rust-msc-latest-win10.exe
|
|
|
|
upx -9 rust-msc-latest-win10.exe
|
2022-09-02 00:37:48 +08:00
|
|
|
|