mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-30 21:31:28 +00:00
Script to automate bundling the packer for Windows
This commit is contained in:
parent
b9bd377408
commit
983ba84449
1
Platform/Apple/virtual/.gitignore
vendored
1
Platform/Apple/virtual/.gitignore
vendored
@ -5,3 +5,4 @@ correction*
|
||||
*.exe
|
||||
data/world/world*
|
||||
launch4j/
|
||||
packer-bundle*
|
||||
|
23
Platform/Apple/virtual/bundlePacker.sh
Executable file
23
Platform/Apple/virtual/bundlePacker.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user