Skip to content

Instantly share code, notes, and snippets.

@PhroZenOne
Last active March 20, 2018 12:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PhroZenOne/fc4601ff1363cd23c2fc to your computer and use it in GitHub Desktop.
Save PhroZenOne/fc4601ff1363cd23c2fc to your computer and use it in GitHub Desktop.
Build EU4 server on ubuntu.
#!/bin/bash
set -e
set -x
PROJECT_PATH=$1
CURRENT_DIR=$( cd "$( dirname "$0" )" && pwd )
if [[ "$PROJECT_PATH" != /* ]]; then
PROJECT_PATH=$CURRENT_DIR/$PROJECT_PATH
fi
if [ ! -d "UnrealEngine" ]; then
git clone https://github.com/3dluvr/UnrealEngine;
#git clone https://github.com/EpicGames/UnrealEngine -b 4.7.3-release;
fi
cd UnrealEngine
git reset --hard HEAD
./Setup.sh
./GenerateProjectFiles.sh
make ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor
./Engine/Build/BatchFiles/RunUAT.sh BuildCookRun -nop4 -platform=Linux -project=$PROJECT_PATH -cook -compressed -allmaps -stage -archive -archivedirectory=$CURRENT_DIR/out -package -LinuxNoEditor -clientconfig=Development -serverconfig=Development -server -noclient -clean -pak -targetplatform=Linux -utf8output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment