mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-11-18 23:07:53 +00:00
23 lines
555 B
Bash
23 lines
555 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -euxo pipefail
|
||
|
|
||
|
if [ "$#" -ne 1 ]; then
|
||
|
echo "Usage: bundlePacker.sh <versionNum>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
rm -f PackPartitions.exe
|
||
|
java -Djava.awt.headless=true -jar /Users/mhaye/plat/virtual/launch4j/launch4j.jar launch4j.cfg.xml
|
||
|
|
||
|
rm -rf bundle-tmp
|
||
|
mkdir bundle-tmp
|
||
|
cd bundle-tmp
|
||
|
unzip ../packer-bundle.zip
|
||
|
mv packer-bundle-* packer-bundle-$1
|
||
|
rm packer-bundle-$1/PackPartitions.exe
|
||
|
mv ../PackPartitions.exe packer-bundle-$1/PackPartitions.exe
|
||
|
zip -r packer-bundle-$1.zip *
|
||
|
cp packer-bundle-$1.zip ../packer-bundle.zip
|
||
|
cd ..
|
||
|
rm -r bundle-tmp
|