Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Building releases now pushes to NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
Alxandr committed Nov 16, 2012
1 parent ee54be0 commit 1d23071
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 21 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,7 +1,6 @@

Thumbs.db
*.obj
*.exe
*.pdb
*.user
*.aps
Expand Down
3 changes: 0 additions & 3 deletions SpotiFire.LibSpotify/SpotiFire.LibSpotify.vcxproj
Expand Up @@ -123,9 +123,6 @@
<ClCompile Include="Track.cpp" />
<ClCompile Include="User.cpp" />
</ItemGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc" />
</ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions SpotiFire.LibSpotify/SpotiFire.LibSpotify.vcxproj.filters
Expand Up @@ -129,9 +129,6 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc">
<Filter>Resource Files</Filter>
Expand Down
52 changes: 39 additions & 13 deletions SpotiFire.build
@@ -1,6 +1,7 @@
<?xml version="1.0"?>
<project default="build-all" xmlns="http://nant.sourceforge.net/release/0.92/nant.xsd" name="SpotiFire">
<project default="build-all" xmlns="http://nant.sf.net/release/0.92/nant.xsd" name="SpotiFire">
<loadtasks assembly="${nant::get-base-directory()}/../../nantcontrib/NAnt.Contrib.Tasks.dll" />
<loadtasks assembly="${nant::get-base-directory()}/../../nant.nuget/NAnt.NuGet.Tasks.dll" />
<property name="project.config" value="debug" />
<property name="basedir" value="${project::get-base-directory()}" />
<property name="name" value="${project::get-name()}" />
Expand Down Expand Up @@ -30,16 +31,41 @@
<version buildtype="Increment" revisiontype="Increment" prefix="build.number" />
</target>

<target name="post-release" depends="nuget-update">

</target>

<target name="nuget-update">
<property name="nuget" value="${basedir}/tools/nuget/nuget.exe" />
<exec program="${nuget}">
<arg value="Update" />
<arg value="-self" />
</exec>
<target name="post-release">
<nuget-pack id="SpotiFire" version="${build.number.version}" title="SpotiFire" authors="alxandr" owners="alxandr" outdir="${build.dir}/.nuget" property="nuget.package">
<description>User libspotify in your .NET application</description>
<content type="lib" framework="net45" basedir="${build.dir}">
<include name="Bass.Net.*" />
<include name="SpotiFire.*" />
<exclude name="*.pdb" />
</content>
<content type="content" basedir="${build.dir}">
<include name="bass.dll" />
<include name="libspotify.dll" />
</content>
<framework-assemblies>
<assembly name="System" />
<assembly name="Microsoft.CSharp" />
<assembly name="System.Core" />
<assembly name="System.Data" />
<assembly name="System.Data.DataSetExtensions" />
<assembly name="System.Drawing" />
<assembly name="System.Xml" />
<assembly name="System.Xml.Linq" />
</framework-assemblies>
<dependencies>
<dependency id="NLog" version="2.0.0.2000" />
</dependencies>
</nuget-pack>
<nuget-publish>
<packages>
<include name="${nuget.package}" />
</packages>
<feeds>
<local-feed path="C:\.nuget\.local\.feed" />
<server-feed apikey-file="C:\.nuget\api.key" />
</feeds>
</nuget-publish>
</target>

<target name="build" depends="init">
Expand Down Expand Up @@ -168,7 +194,7 @@
</fileset>
</copy>

<zip zipfile="${sp.build.dir}/SpotiFire.zip">
<zip zipfile="${sp.build.dir}/SpotiFire-${build.number.version}.zip">
<fileset basedir="${build.dir}" prefix="SpotiFire">
<include name="**/*" />
</fileset>
Expand Down Expand Up @@ -199,7 +225,7 @@
</fileset>
</copy>
<nant buildfile="${buildfile}" />
<zip zipfile="${sp.build.dir}/${build.name}.zip">
<zip zipfile="${sp.build.dir}/${build.name}-${build.number.version}.zip">
<fileset basedir="${build.dir}" prefix="${build.name}">
<include name="**/*" />
</fileset>
Expand Down
2 changes: 1 addition & 1 deletion build.number
@@ -1 +1 @@
0.1.5.0
0.1.9.0
Binary file added tools/nant.nuget/NAnt.NuGet.Tasks.dll
Binary file not shown.
37 changes: 37 additions & 0 deletions tools/nant.nuget/NAnt.NuGet.Tasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added tools/nant.nuget/NuGet.Core.dll
Binary file not shown.
Binary file removed tools/nuget/NuGet.exe
Binary file not shown.
Binary file removed tools/nuget/nuget.exe.old
Binary file not shown.

0 comments on commit 1d23071

Please sign in to comment.