23 lines
582 B
Bash
Raw Normal View History

2022-05-05 16:36:36 +08:00
ROOT=$PWD
rm libpikabinder -rf
mkdir libpikabinder
2022-07-12 18:59:05 +08:00
cargo build --release
2022-05-05 16:36:36 +08:00
cbindgen --config cbindgen.toml --crate rust-msc --output libpikabinder/libpikabinder.h
2022-05-15 00:10:09 +08:00
cp target/release/libpikabinder.a libpikabinder
2022-05-05 16:36:36 +08:00
cd ../pikaByteCodeGen
cp ../pikaCompiler/libpikabinder . -r
2022-05-06 18:49:46 +08:00
rm pikascript/pikascript-core -r
2022-05-05 16:36:36 +08:00
cp ../../src pikascript/pikascript-core -r
2022-06-26 22:33:21 +08:00
touch pikascript/pikascript-core/keep
rm build -rf
mkdir build
cd build
cmake ..
make -j
2022-05-05 16:42:24 +08:00
cp pikaByteCodeGen $ROOT/rust-msc-latest-linux
cd $ROOT
chmod +x rust-msc-latest-linux
2022-10-01 18:53:27 +08:00
strip -s rust-msc-latest-linux
upx -9 rust-msc-latest-linux