pikapython/tools/pikaCompiler/cross-build.sh

24 lines
604 B
Bash
Raw Normal View History

ROOT=$PWD
# clean
rm libpikabinder -rf
mkdir libpikabinder
2022-05-05 20:26:03 +08:00
cargo build --release --target=i686-pc-windows-gnu
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
cd ../pikaByteCodeGen
cp ../pikaCompiler/libpikabinder . -r
2022-05-05 21:49:58 +08:00
rm pikascript/pikascript-core -r
cp ../../src pikascript/pikascript-core -r
2022-06-26 22:33:21 +08:00
touch pikascript/pikascript-core/keep
sh cross-win.sh
2022-09-02 00:37:48 +08:00
cp build-win/pikaByteCodeGen.exe $ROOT/rust-msc-latest-win10.exe
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