Skip to content

Instantly share code, notes, and snippets.

@mefellows
Created March 17, 2015 21:56
Show Gist options
  • Save mefellows/9c586c2255eefb144e65 to your computer and use it in GitHub Desktop.
Save mefellows/9c586c2255eefb144e65 to your computer and use it in GitHub Desktop.
Mono static binary build script
#!/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