forked from shadowmint/ue4-bash-scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathandroid.sh
More file actions
executable file
·35 lines (24 loc) · 759 Bytes
/
android.sh
File metadata and controls
executable file
·35 lines (24 loc) · 759 Bytes
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
#!/usr/bin/env bash
set -e
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$DIR/common/config.source"
# Build editor
"$DIR/build.sh" $1
MODE="Development"
PLATFORM="Android"
echo MODE: $MODE
echo PLATFORM: $PLATFORM
DIST="$PROJECTS/$1/ArchivedBuilds/Android"
mkdir -p $DIST
CAPITAL=$(capital "$1")
UPROJECT="$CAPITAL.uproject"
"$UE4/Engine/Build/BatchFiles/RunUAT.sh" BuildCookRun \
-project="$PROJECTS/$1/$UPROJECT" \
-nop4 \
-clientconfig="$MODE" -nocompileeditor \
-utf8output -platform="$PLATFORM" \
-targetplatform="$PLATFORM" -cookflavor="ASTC" \
-build -cook -messaging \
-unversionedcookedcontent -compressed -stage -package \
-prereqs -distribution -archive -archivedirectory="$DIST"\
"${@:2}"