Last active
March 20, 2018 12:18
-
-
Save PhroZenOne/fc4601ff1363cd23c2fc to your computer and use it in GitHub Desktop.
Build EU4 server on ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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