Skip to content

Commit

Permalink
better script
Browse files Browse the repository at this point in the history
  • Loading branch information
mookid8000 committed Oct 7, 2015
1 parent 4818297 commit 7d7a255
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>GoCommando</id>
<version>0.90.0</version>
<version>$version$</version>
<authors>Mogens Heller Grabe</authors>
<owners>Mogens Heller Grabe</owners>
<licenseUrl>http://en.wikipedia.org/wiki/Beerware</licenseUrl>
Expand Down
40 changes: 39 additions & 1 deletion build.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
@echo off

echo GoCommand build thing.
echo.

set buildVersion=%1

set outputPath="%~dp0\deploy"

if exist "%outputPath%" (
rd "%outputPath%" /s/q
)

mkdir "%outputPath%"

if "%buildVersion%"=="" (
echo.
echo Please specify which version to build as an argument
echo.
goto exit
)

echo Building version %buildVersion%...

msbuild GoCommando\GoCommando.csproj -P:Configuration=Release
nuget\nuget pack Package.nuspec -out c:\temp

echo Tagging...

git tag %buildVersion%

echo Packing...

nuget\nuget pack Package.nuspec -out %outputPath% -version %buildVersion%

echo Pushing...

git push
git push --tags

:exit

0 comments on commit 7d7a255

Please sign in to comment.