From fa9c0cf4c0f54f0c1ffc69566cf626dd685ef666 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 1 Nov 2019 18:40:47 +0100 Subject: [PATCH] use workaround for mac --- .travis.yml | 2 +- build.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 build.sh diff --git a/.travis.yml b/.travis.yml index ba9c367..11c95b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ install: - sudo cp -r /Library/Frameworks/Mono.framework/External/xbuild/MonoGame/v3.0/Tools/osx /Users/travis/build/mdreem/dreetris_csharp/Dreetris/Content/ script: - - msbuild ./Dreetris/Dreetris.csproj /p:Configuration=Release /v:d /t:Build + - ./build.sh after_success: - zip dreetris -r ./Dreetris/bin/Release/ diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..b0d5fe4 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +ROOT=$(pwd) + +msbuild ./Dreetris/Dreetris.csproj /p:Configuration=Release /v:d /t:Build + +MGCB_DIR=/Library/Frameworks/Mono.framework/External/xbuild/MonoGame/v3.0/Tools +MGCB=${MGCB_DIR}/MGCB.exe + +cd ${ROOT} +mkdir -p ${ROOT}/Dreetris/bin/tmp +cp ${ROOT}/Dreetris/Content/music.ogg ${ROOT}/Dreetris/bin/tmp + +pushd ${MGCB_DIR} +mono ${MGCB} /platform:Linux /build:${ROOT}/Dreetris/bin/tmp/music.ogg +popd + +cp ${ROOT}/Dreetris/bin/tmp/music.ogg ${ROOT}/Dreetris/bin/Release/Content +cp ${ROOT}/Dreetris/bin/tmp/music.xnb ${ROOT}/Dreetris/bin/Release/Content