2023-10-16 18:59:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
|
|
echo "Usage: bundlePacker.sh <versionNum>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-10-30 20:37:25 +00:00
|
|
|
./b
|
2023-10-16 18:59:19 +00:00
|
|
|
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
|
2023-10-30 20:37:25 +00:00
|
|
|
rm -f packer-bundle-$1/world.xml
|
2023-10-16 18:59:19 +00:00
|
|
|
mv ../PackPartitions.exe packer-bundle-$1/PackPartitions.exe
|
|
|
|
zip -r packer-bundle-$1.zip *
|
|
|
|
cp packer-bundle-$1.zip ../packer-bundle.zip
|
|
|
|
cd ..
|
2023-10-30 20:37:25 +00:00
|
|
|
rm -r bundle-tmp
|