mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
24 lines
604 B
Bash
24 lines
604 B
Bash
ROOT=$PWD
|
|
|
|
# clean
|
|
rm libpikabinder -rf
|
|
mkdir libpikabinder
|
|
|
|
cargo build --release --target=i686-pc-windows-gnu
|
|
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
|
|
cp target/i686-pc-windows-gnu/release/libpikabinder.a libpikabinder
|
|
|
|
cd ../pikaByteCodeGen
|
|
cp ../pikaCompiler/libpikabinder . -r
|
|
rm pikascript/pikascript-core -r
|
|
cp ../../src pikascript/pikascript-core -r
|
|
touch pikascript/pikascript-core/keep
|
|
|
|
sh cross-win.sh
|
|
|
|
cp build-win/pikaByteCodeGen.exe $ROOT/rust-msc-latest-win10.exe
|
|
cd $ROOT
|
|
strip -s rust-msc-latest-win10.exe
|
|
upx -9 rust-msc-latest-win10.exe
|
|
|