Skip to content

Commit

Permalink
Generate nuget package for OpenTK.GLControl
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed Dec 15, 2013
1 parent 4e77a50 commit 2b93e45
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Installers/Nuget/Build.Installer.Nuget.csproj
Expand Up @@ -48,28 +48,25 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<Target Name="Build">

<!-- Copy built files to the tree format expected by nuget -->
<!-- Copy built files to the tree format expected by nuget -->
<CreateItem Include="../../Binaries/OpenTK/Release/OpenTK*">
<Output TaskParameter="Include" ItemName="Binaries" />
</CreateItem>
<Copy SourceFiles="@(Binaries)" DestinationFolder="./lib/net20" />

<!-- Update version information -->
<ReadLinesFromFile File="../../Version.txt">
<Output TaskParameter="Lines" ItemName="Version" />
</ReadLinesFromFile>

<!-- Execute nuget script -->
<Exec Command="nuget.exe pack OpenTK.nuspec -Version @(Version)" Condition="$(OS) == 'Windows_NT'" />
<Exec Command="nuget.exe pack OpenTK.GLControl.nuspec -Version @(Version)" Condition="$(OS) == 'Windows_NT'" />
<Exec Command="mono nuget.exe pack OpenTK.nuspec -Version @(Version)" Condition="$(OS) != 'Windows_NT'" />

<!-- Copy the nuget archive to the root directory and add a date stamp -->
<Exec Command="mono nuget.exe pack OpenTK.GLControl.nuspec -Version @(Version)" Condition="$(OS) != 'Windows_NT'" />
<!-- Copy the nuget archive to the root directory and add a date stamp -->
<CreateItem Include="OpenTK*.nupkg">
<Output TaskParameter="Include" ItemName="NugetPackage" />
</CreateItem>
<Copy SourceFiles="@(NugetPackage)" DestinationFolder="../../" />

</Target>
<Target Name="Clean">
<CreateItem Include="OpenTK.*.nupkg;lib/**">
Expand All @@ -83,6 +80,7 @@
</Target>
<ItemGroup>
<None Include="OpenTK.nuspec" />
<None Include="OpenTK.GLControl.nuspec" />
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>
Expand Down
49 changes: 49 additions & 0 deletions Installers/Nuget/OpenTK.GLControl.nuspec
@@ -0,0 +1,49 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>OpenTK.GLControl</id>
<version>$version$</version>
<authors>Stefanos Apostolopoulos</authors>
<owners>Stefanos Apostolopoulos</owners>
<licenseUrl>http://www.opentk.com/project/license</licenseUrl>
<projectUrl>http://www.opentk.com</projectUrl>
<iconUrl>file:///./logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>
Add OpenGL graphics to your Windows.Forms or WPF application
</summary>
<description>
OpenTK.GLControl is a Windows.Forms Control with OpenGL rendering capabilities. Use it to add
accelerated 3d graphics to your Windows.Forms or Windows Presentation Foundation (WPF) application.

Features
- Integrate 3d graphics into your Windows.Forms or WPF application
- Use the .Net/Mono language of your choice: C#, F#, VB.Net, Boo, IronPython, IronRuby
- Develop faster with inline documentation and strongly-typed enumerations for all OpenGL and OpenAL functions

This is the official nuget package from http://www.opentk.com
The source code can be found at https://github.com/opentk/opentk
</description>
<releaseNotes>
http://www.opentk.com/news
</releaseNotes>
<copyright>Copyright 2006-2013 Stefanos Apostolopoulos</copyright>
<tags>OpenTK OpenGL WinForms WPF C# F# VB .Net Mono</tags>
<references>
<reference file="OpenTK.GLControl.dll" />
</references>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" />
<frameworkAssembly assemblyName="System.Drawing" />
<frameworkAssembly assemblyName="System.Windows.Forms" />
<frameworkAssembly assemblyName="System.Xml" />
</frameworkAssemblies>
<dependencies>
<dependency id="OpenTK" version="1.1.0.0" />
</dependencies>
</metadata>
<files>
<file src="lib/net20/OpenTK.GLControl.dll" target="lib/net20" />
<file src="lib/net20/OpenTK.GLControl.xml" target="lib/net20" />
</files>
</package>

0 comments on commit 2b93e45

Please sign in to comment.