Skip to content

Commit

Permalink
Added nuget package support
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten committed Jan 13, 2017
1 parent 4a3714a commit eb4de47
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -250,3 +250,4 @@ paket-files/
# JetBrains Rider
.idea/
*.sln.iml
nuget/package/
14 changes: 14 additions & 0 deletions nuget/BuildPackage.cmd
@@ -0,0 +1,14 @@
RMDIR package /S /Q
XCOPY ..\open-zwave\config package\config\ /S /Y
XCOPY OpenZWave.nuspec package\ /Y
XCOPY ..\src\x86\Release\OpenZWaveUWP\OpenZWave.dll package\runtimes\win10-x86\native\ /Y
XCOPY ..\src\x64\Release\OpenZWaveUWP\OpenZWave.dll package\runtimes\win10-x64\native\ /Y
XCOPY ..\src\arm\Release\OpenZWaveUWP\OpenZWave.dll package\runtimes\win10-arm\native\ /Y
XCOPY ..\src\x86\Release\OpenZWaveUWP\OpenZWave.winmd package\lib\uap10.0\ /Y
XCOPY ..\src\x86\Release\OpenZWaveUWP\OpenZWave.pri package\lib\uap10.0\ /Y
XCOPY ..\src\x86\Release\OpenZWaveUWP\OpenZWave.xml package\lib\uap10.0\ /Y
XCOPY OpenZWave.targets package\build\net452\ /Y
XCOPY OpenZWave.targets package\build\uap10.0\ /Y

nuget pack package\OpenZWave.nuspec
PAUSE
20 changes: 20 additions & 0 deletions nuget/OpenZWave.nuspec
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>OpenZWave</id>
<version>1.5.0.0</version>
<title>OpenZWave</title>
<authors>openzwave.com</authors>
<owners>openzwave.com</owners>
<licenseUrl>https://github.com/OpenZWave/open-zwave/blob/1c2511bb46d935864f0a6ff19fd804028b7beab3/license/lgpl.txt</licenseUrl>
<projectUrl>http://www.openzwave.net/</projectUrl>
<iconUrl>http://www.openzwave.net/css/ozwlogo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Dotnet Wrapper for Windows that include :
- OpenZWaveDotNet.dll
- config directory (xml files for devices)</description>
<summary>free software library that interfaces with selected Z-Wave PC controllers to manipulate and respond to devices on a Z-Wave network.</summary>
<releaseNotes>https://github.com/OpenZWave/open-zwave/blob/1c2511bb46d935864f0a6ff19fd804028b7beab3/ChangeLog</releaseNotes>
<tags>openzwave zwave z-wave home automation iot</tags>
</metadata>
</package>
12 changes: 12 additions & 0 deletions nuget/OpenZWave.targets
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Link config files in, to include them in the output directory and application manifest. -->
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)\config\**\*.*">
<Link>config\%(RecursiveDir)%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>

0 comments on commit eb4de47

Please sign in to comment.