mirror of
https://github.com/britzl/monarch.git
synced 2025-09-27 18:12:22 +02:00
Updated build scripts
This commit is contained in:
43
.travis/run.sh
Executable file
43
.travis/run.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
PLATFORM="x86_64-linux"
|
||||
else
|
||||
PLATFORM="$1"
|
||||
fi
|
||||
|
||||
|
||||
echo "${PLATFORM}"
|
||||
|
||||
# {"version": "1.2.89", "sha1": "5ca3dd134cc960c35ecefe12f6dc81a48f212d40"}
|
||||
# Get SHA1 of the current Defold stable release
|
||||
SHA1=$(curl -s http://d.defold.com/stable/info.json | sed 's/.*sha1": "\(.*\)".*/\1/')
|
||||
echo "Using Defold dmengine_headless version ${SHA1}"
|
||||
|
||||
# Create dmengine_headless and bob.jar URLs
|
||||
DMENGINE_URL="http://d.defold.com/archive/${SHA1}/engine/${PLATFORM}/dmengine_headless"
|
||||
BOB_URL="http://d.defold.com/archive/${SHA1}/bob/bob.jar"
|
||||
|
||||
# Download dmengine_headless
|
||||
echo "Downloading ${DMENGINE_URL}"
|
||||
curl -o dmengine_headless ${DMENGINE_URL}
|
||||
chmod +x dmengine_headless
|
||||
|
||||
# Download bob.jar
|
||||
echo "Downloading ${BOB_URL}"
|
||||
curl -o bob.jar ${BOB_URL}
|
||||
|
||||
# Fetch libraries if DEFOLD_AUTH and DEFOLD_USER are set
|
||||
if [ -n "${DEFOLD_AUTH}" ] && [ -n "${DEFOLD_USER}" ]; then
|
||||
echo "Running bob.jar - resolving dependencies"
|
||||
java -jar bob.jar --auth "${DEFOLD_AUTH}" --email "${DEFOLD_USER}" resolve
|
||||
fi
|
||||
|
||||
echo "Running bob.jar - building"
|
||||
java -jar bob.jar --debug build --keep-unused
|
||||
|
||||
echo "Starting dmengine_headless"
|
||||
if [ - "${DEFOLD_BOOSTRAP_COLLECTION}" ]; then
|
||||
./dmengine_headless --config=bootstrap.main_collection=${DEFOLD_BOOSTRAP_COLLECTION}
|
||||
else
|
||||
./dmengine_headless
|
||||
fi
|
Reference in New Issue
Block a user