Skip to content

Commit

Permalink
use workaround for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mdreem committed Nov 1, 2019
1 parent 4a7d3ab commit fa9c0cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fa9c0cf

Please sign in to comment.