forked from shadowmint/ue4-bash-scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.sh
executable file
·37 lines (27 loc) · 858 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -e
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR/common/config.source"
DIST="$PROJECTS/$1/ArchivedBuilds/Release"
mkdir -p $DIST
MODE=Shipping
# MODE=Development
PLATFORM="Mac"
VERSION=1.0.0
echo MODE: $MODE
echo DIST: $DIST
echo PLATFORM: $PLATFORM
echo VERSION: $VERSION
CAPITAL=$(capital "$1")
UPROJECT="$CAPITAL.uproject"
"$UE4/Engine/Build/BatchFiles/RunUAT.sh" BuildCookRun \
-project="$PROJECTS/$1/$UPROJECT" \
-nocompileeditor -nop4 \
-cook -stage -archive -archivedirectory="$DIST" \
-package -clientconfig="$MODE" -ue4exe=UE4Editor \
-compressed -clean -pak -prereqs -nodebuginfo \
-targetplatform="$PLATFORM" -build -utf8output \
-platform="$PLATFORM" -Messaging \
-unversionedcookedcontent -createreleaseversion=$VERSION \
-installed -manifests \
"${@:2}"