Skip to content

Commit b85e35e

Browse files
committed
build(build.sh): optimize buildscript
1 parent ae551c4 commit b85e35e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ build() {
127127
$PATH_TO_UNITY -quit -batchmode -projectPath "$PATH_TO_PROJECT" -exportPackage \
128128
"Assets/LeanplumSample" "Assets/Standard Assets/Leanplum" "Assets/Plugins" "$OUT_PKG"
129129

130-
export UNITY_BINARY="$PATH_TO_PROJECT/$OUT_PKG"
131-
132130
echo "Done"
133131
}
134132

@@ -146,7 +144,8 @@ main() {
146144
if [[ -z "${BUILD_NUMBER+x}" ]]; then
147145
BUILD_NUMBER=$(date "+%s")
148146
fi
149-
export UNITY_VERSION_STRING="$UNITY_VERSION+$BUILD_NUMBER"
147+
default="$UNITY_VERSION+$BUILD_NUMBER"
148+
export UNITY_VERSION_STRING=${UNITY_VERSION_STRING:-$default}
150149

151150
for i in "$@"; do
152151
case $i in

0 commit comments

Comments
 (0)