Skip to content

Commit

Permalink
Fix linux build problems
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonaka committed Jun 13, 2024
1 parent 2b2b82b commit c5288ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build_linux.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ cargo build --release --target x86_64-unknown-linux-musl
# echo "build target aarch64-unknown-linux-gnu"
# cargo build --release --target aarch64-unknown-linux-gnu

rm ./translator-rs-x86_64-unknown-linux-musl.zip
zip -j ./translator-rs-x86_64-unknown-linux-musl.zip ./target/x86_64-unknown-linux-musl/release/translator-rs
muslfile="./translator-rs-x86_64-unknown-linux-musl.zip"

if [ -f "$muslfile" ]; then
rm $muslfile
fi
zip -j $muslfile ./target/x86_64-unknown-linux-musl/release/translator-rs

0 comments on commit c5288ae

Please sign in to comment.