Skip to content

Commit

Permalink
chore: make genzip.sh path agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalourdio committed May 6, 2024
1 parent 40989ac commit 058a704
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Binary file modified bin/flhacker.zip
Binary file not shown.
23 changes: 14 additions & 9 deletions bin/genzip.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
#!/bin/bash

rm -f bin/*.so
rm -f bin/*.zip
rm -f bin/flhacker

cp target/*.so bin
cp target/flhacker bin
sh_path=$(realpath $0)
bin_path=$(dirname $sh_path)
echo Working in $bin_path

zip -j bin/flhacker.zip bin/*.so bin/flhacker
rm -f $bin_path/*.so
rm -f $bin_path/*.zip
rm -f $bin_path/flhacker

rm -f bin/*.so
rm -f bin/flhacker
cp $bin_path/../target/*.so $bin_path
cp $bin_path/../target/flhacker $bin_path

git add bin/flhacker.zip
zip -j $bin_path/flhacker.zip $bin_path/*.so $bin_path/flhacker

rm -f $bin_path/*.so
rm -f $bin_path/flhacker

git add $bin_path/flhacker.zip

0 comments on commit 058a704

Please sign in to comment.