rpfixer/build_x64.sh

20 lines
713 B
Bash
Raw Permalink Normal View History

2024-12-16 00:38:05 +00:00
cargo build --target x86_64-unknown-linux-musl --package rpfixer --bin rpfixer --release
cargo build --target x86_64-pc-windows-gnu --package rpfixer --bin rpfixer --release
mkdir -p product
cp ./target/x86_64-pc-windows-gnu/release/rpfixer.exe ./product/rpfixer-windows-x64.exe
2024-12-16 00:39:10 +00:00
cp ./target/x86_64-unknown-linux-musl/release/rpfixer ./product/rpfixer-linux-x64
2024-12-16 00:38:05 +00:00
pkgversion=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "rpfixer") | .version')
echo "package version is:"
echo $pkgversion
balls=${pkgversion::-1}
balls2=${balls:1}
echo $balls2
cd product
zip "rpfixer-windows-x64-${balls2}.zip" rpfixer-windows-x64.exe
zip "rpfixer-linux-x64-${balls2}.zip" rpfixer-linux-x64