Created
May 5, 2018 16:07
-
-
Save copygirl/00905d62b2884c9ee72831bcbfc7032c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
mod_name=${PWD##*/} | |
version=$1 | |
release_dir=bin/Release/net452/ | |
archive=build/$mod_name-$version.zip | |
echo "== Building $mod_name in release mode ..." | |
dotnet build -c Release > /dev/null | |
echo "== Creating $archive ..." | |
pushd resources/ > /dev/null | |
zip -q ../$archive -r ** | |
popd > /dev/null | |
zip -q $archive -j $release_dir/$mod_name.dll | |
zip -q $archive -j $release_dir/$mod_name.pdb | |
echo "== All done! ♥" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment