diff --git a/scripts/deploy_fteqw.sh b/scripts/deploy_fteqw.sh index ab53665..acce89e 100755 --- a/scripts/deploy_fteqw.sh +++ b/scripts/deploy_fteqw.sh @@ -37,6 +37,17 @@ fi mv ${TMPDIR:-/tmp}/LibreQuake/lq1 /opt/fteqw rm -rf ${TMPDIR:-/tmp}/LibreQuake +# Compile the maps +curl --location 'https://github.com/ericwa/ericw-tools/releases/download/2.0.0-alpha6/ericw-tools-2.0.0-alpha6-Linux.zip' > /tmp/ericw-tools.zip +unzip -o -d ${TMPDIR:-/tmp}/ericw-tools ${TMPDIR:-/tmp}/ericw-tools.zip +rm /tmp/ericw-tools.zip + +cd /opt/fteqw/lq1/maps +./make.sh -m QBSP_PATH="/tmp/ericw-tools/qbsp" LIGHT_PATH="/tmp/ericw-tools/light" VIS_PATH="/tmp/ericw-tools//vis" +cd - +rm -rf /tmp/ericw-tools + +# Compile progs.dat curl --location 'https://www.fteqcc.org/dl/fteqcc_linux64.zip' > /opt/fteqw/ftecc_linux64.zip unzip -o -d /opt/fteqw /opt/fteqw/ftecc_linux64.zip fteqcc64 rm /opt/fteqw/ftecc_linux64.zip