Skip to content

Commit

Permalink
Added nuspec file and surrounding build files for creating a nuget pa…
Browse files Browse the repository at this point in the history
…ckage
  • Loading branch information
Lee Walker committed May 12, 2015
1 parent 56f2b37 commit 47c76c3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
!Artifacts/
Artifacts/*
!Build/
Build/*
!packages/
packages/*
SSQLib/bin
Expand Down
21 changes: 21 additions & 0 deletions SSQLib.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>SSQLib</id>
<version>$version$</version>
<title></title>
<authors>Lee Walker, Elliott Spencer</authors>
<owners>Lee Walker</owners>
<licenseUrl>https://github.com/leewalkergm/ssqlib/blob/master/LICENSE.txt</licenseUrl>
<projectUrl>http://leewalkergm.github.io/ssqlib/</projectUrl>
<iconUrl>https://nuget.org/Content/Images/packageDefaultIcon.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A Source Server Query Library</description>
<releaseNotes></releaseNotes>
<copyright>Copyright &#x00A9; Lee Walker. All rights reserved.</copyright>
<tags>Source Server Query Library Valve Counterstrike Global Offensive</tags>
</metadata>
<files>
<file src="Artifacts\bin\SSQLib\SSQLib.dll" target="lib\net40\" />
</files>
</package>
23 changes: 23 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)

set version=1.0.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)

set nuget=
if "%nuget%" == "" (
set nuget=nuget
)

%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild SSQLib.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false

mkdir Build
mkdir Build\lib
mkdir Build\lib\net40

%nuget% pack "SSQLib.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"

0 comments on commit 47c76c3

Please sign in to comment.