feat: pack starmelon with upx
This commit is contained in:
parent
ee7ce47f48
commit
c845bf95a3
2 changed files with 20 additions and 1 deletions
15
default.upx.do
Normal file
15
default.upx.do
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
mkdir -p obj
|
||||
|
||||
case $1 in
|
||||
"starmelon.upx")
|
||||
git ls-files src | xargs redo-ifchange
|
||||
cargo build --release >&2
|
||||
cp ../../../target/release/starmelon obj/
|
||||
strip obj/starmelon >&2;
|
||||
upx -1 -o "$3" obj/starmelon >&2;
|
||||
;;
|
||||
*)
|
||||
echo "no rule to build '$1'" >&2;
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue