- Ingame mod versions now always match the package version - Adds macOS compatibility - Removes trait and lua api docs pending future overhaul - Individual platform packages can be compiled directly - Improved error checking - Removes unnecessary redundancy and indirection
37 lines
724 B
Bash
Executable File
37 lines
724 B
Bash
Executable File
#!/bin/bash
|
|
# OpenRA master packaging script
|
|
|
|
if [ $# -ne "2" ]; then
|
|
echo "Usage: `basename $0` version outputdir"
|
|
exit 1
|
|
fi
|
|
|
|
# Set the working dir to the location of this script
|
|
cd $(dirname $0)
|
|
|
|
pushd windows >/dev/null
|
|
echo "Building Windows package"
|
|
./buildpackage.sh "$1" "$2"
|
|
if [ $? -ne 0 ]; then
|
|
echo "Windows package build failed."
|
|
fi
|
|
popd >/dev/null
|
|
|
|
pushd osx >/dev/null
|
|
echo "Building macOS package"
|
|
./buildpackage.sh "$1" "$2"
|
|
if [ $? -ne 0 ]; then
|
|
echo "macOS package build failed."
|
|
fi
|
|
popd >/dev/null
|
|
|
|
pushd linux >/dev/null
|
|
echo "Building Linux packages"
|
|
./buildpackage.sh "$1" "$2"
|
|
if [ $? -ne 0 ]; then
|
|
echo "Linux package build failed."
|
|
fi
|
|
popd >/dev/null
|
|
|
|
echo "Package build done."
|