Skip to content

Instantly share code, notes, and snippets.

@copygirl
Created May 5, 2018 16:07
Show Gist options
  • Save copygirl/00905d62b2884c9ee72831bcbfc7032c to your computer and use it in GitHub Desktop.
Save copygirl/00905d62b2884c9ee72831bcbfc7032c to your computer and use it in GitHub Desktop.
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