Created
March 17, 2015 21:56
-
-
Save mefellows/9c586c2255eefb144e65 to your computer and use it in GitHub Desktop.
Mono static binary build script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nuget restore -NonInteractive | |
PACKAGES_DIR=$(find ./packages/ -name *.dll) | |
PACKAGES="" | |
for f in $PACKAGES_DIR; do | |
PACKAGES="$PACKAGES $f" | |
done | |
xbuild /p:Configuration=Release ./console.sln | |
mkbundle --deps --static ./obj/x86/Release/console.exe $PACKAGES -o consoleapp | |
sudo docker build -t mfellows/mono-api . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment