Skip to content

Commit

Permalink
Updated NetworkTables to latest and created chocolatey package spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jan 6, 2017
1 parent 7dcc3e1 commit edc4d08
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 15 deletions.
2 changes: 1 addition & 1 deletion DotNetDash.CameraViews/DotNetDash.CameraViews.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<Private>True</Private>
</Reference>
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Nito.AsyncEx.Coordination, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.CameraViews/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package id="AForge" version="2.2.5" targetFramework="net46" />
<package id="AForge.Video" version="2.2.5" targetFramework="net46" />
<package id="AForge.Video.DirectShow" version="2.2.5" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
<package id="Nito.Collections.Deque" version="1.0.0" targetFramework="net46" />
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.Core/DotNetDash.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Hellosam.Net.Collections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.Core/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
<package id="hellosam.net.collections" version="1.0.0" targetFramework="net46" />
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.LiveWindow/DotNetDash.LiveWindow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Hellosam.Net.Collections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.LiveWindow/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
<package id="hellosam.net.collections" version="1.0.0" targetFramework="net46" />
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Nito.AsyncEx.Coordination, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.SpeedController/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
<package id="Nito.Collections.Deque" version="1.0.0" targetFramework="net46" />
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.Test/DotNetDash.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Nito.AsyncEx.Coordination, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash.Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
<package id="Nito.Collections.Deque" version="1.0.0" targetFramework="net46" />
Expand Down
4 changes: 1 addition & 3 deletions DotNetDash.XamlPlugins/DotNetDash.XamlPlugins.proj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
<XamlPlugin Include="Gyro.xaml" />
</ItemGroup>
<ItemGroup>
<XamlPlugin Include="Command.xaml">
<SubType>Designer</SubType>
</XamlPlugin>
<XamlPlugin Include="Command.xaml" />
</ItemGroup>
<Target Name="Build">
<Copy SourceFiles="@(XamlPlugin)" DestinationFolder="../bin/$(Configuration)/Plugins/XAML Plugins" SkipUnchangedFiles="true" />
Expand Down
3 changes: 2 additions & 1 deletion DotNetDash/DotNetDash.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CoreDebug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -47,7 +48,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Hellosam.Net.Collections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion DotNetDash/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
<package id="hellosam.net.collections" version="1.0.0" targetFramework="net46" />
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
Expand Down
79 changes: 79 additions & 0 deletions chocolatey/DotNetDash/dotnetdash.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Read this before creating packages: https://chocolatey.org/docs/create-packages -->
<!-- It is especially important to read the above link to understand additional requirements when publishing packages to the community feed aka dot org (https://chocolatey.org/packages). -->

<!-- Test your packages in a test environment: https://github.com/chocolatey/chocolatey-test-environment -->

<!--
This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Reference. Chocolatey uses a special version of NuGet.Core that allows us to do more than was initially possible. As such there are certain things to be aware of:
* the package xmlns schema url may cause issues with nuget.exe
* Any of the following elements can ONLY be used by choco tools - projectSourceUrl, docsUrl, mailingListUrl, bugTrackerUrl, packageSourceUrl, provides, conflicts, replaces
* nuget.exe can still install packages with those elements but they are ignored. Any authoring tools or commands will error on those elements
-->

<!-- You can embed software files directly into packages, as long as you are not bound by distribution rights. -->
<!-- * If you are an organization making private packages, you probably have no issues here -->
<!-- * If you are releasing to the community feed, you need to consider distribution rights. -->
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<!-- == PACKAGE SPECIFIC SECTION == -->
<!-- This section is about this package, although id and version have ties back to the software -->
<!-- id is lowercase and if you want a good separator for words, use '-', not '.'. Dots are only acceptable as suffixes for certain types of packages, e.g. .install, .portable, .extension, .template -->
<!-- If the software is cross-platform, attempt to use the same id as the debian/rpm package(s) if possible. -->
<id>dotnetdash</id>
<!-- version should MATCH as closely as possible with the underlying software -->
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
<version>1.0.0</version>
<packageSourceUrl>https://github.com/robotdotnet/DotNetDash/releases</packageSourceUrl>
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
<owners>jkoritzinsky</owners>
<!-- ============================== -->

<!-- == SOFTWARE SPECIFIC SECTION == -->
<!-- This section is about the software itself -->
<title>DotNetDash</title>
<authors>Jeremy Koritzinsky, RobotDotNet</authors>
<!-- projectUrl is required for the community feed -->
<projectUrl>https://github.com/robotdotnet/DotNetDash</projectUrl>
<!--<iconUrl>http://cdn.rawgit.com/__REPLACE_YOUR_REPO__/master/icons/dotnetdash.png</iconUrl>-->
<copyright>2016 Robot Dot Net</copyright>
<!-- If there is a license Url available, it is is required for the community feed -->
<licenseUrl>https://github.com/robotdotnet/DotNetDash/blob/master/LICENSE.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectSourceUrl>https://github.com/robotdotnet/DotNetDash</projectSourceUrl>
<!--<docsUrl>At what url are the software docs located?</docsUrl>-->
<!--<mailingListUrl></mailingListUrl>-->
<bugTrackerUrl>https://github.com/robotdotnet/DotNetDash/issues</bugTrackerUrl>
<tags>dotnetdash frc robotdotnet smartdashboard</tags>
<summary>A .NET based replacement for SmartDashboard provided by RobotDotNet</summary>
<description> A NetworkTables client that creates a dashboard-like view similar to SmartDashboard and SmartDashboard 2.0 SFX. </description>
<releaseNotes>Initial Release for the 2017 FIRST Robotics Competition Season.</releaseNotes>
<!-- =============================== -->

<!-- Specifying dependencies and version ranges? https://docs.nuget.org/create/versioning#specifying-version-ranges-in-.nuspec-files -->
<!--<dependencies>
<dependency id="" version="__MINIMUM_VERSION__" />
<dependency id="" version="[__EXACT_VERSION__]" />
<dependency id="" version="[_MIN_VERSION_INCLUSIVE, MAX_VERSION_INCLUSIVE]" />
<dependency id="" version="[_MIN_VERSION_INCLUSIVE, MAX_VERSION_EXCLUSIVE)" />
<dependency id="" />
<dependency id="chocolatey-uninstall.extension" />
</dependencies>-->
<!-- chocolatey-uninstall.extension - If supporting 0.9.9.x (or below) and including a chocolateyUninstall.ps1 file to uninstall an EXE/MSI, you probably want to include chocolatey-uninstall.extension as a dependency. Please verify whether you are using a helper function from that package. -->

<!--<provides>NOT YET IMPLEMENTED</provides>-->
<!--<conflicts>NOT YET IMPLEMENTED</conflicts>-->
<!--<replaces>NOT YET IMPLEMENTED</replaces>-->
<dependencies>
<dependency id="dotnet4.6" />
</dependencies>
</metadata>
<files>
<!-- this section controls what actually gets packaged into the Chocolatey package -->
<file src="tools\**" target="tools" />
<!--Building from Linux? You may need this instead: <file src="tools/**" target="tools" />-->
</files>
</package>
25 changes: 25 additions & 0 deletions chocolatey/DotNetDash/tools/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
RobotDotNet code license

Copyright (c) 2015-2016 RobotDotNet

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of RobotDotNet nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ROBOTDOTNET AND CONTRIBUTORS``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ROBOTPY OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13 changes: 13 additions & 0 deletions chocolatey/DotNetDash/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$packageName = 'dotnetdash'
$url = "https://github.com/RobotDotNet/DotNetDash/releases/download/$env:chocolateyPackageVersion/DotNetDash.zip"
$unzipLocation = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$desktopPath = [Environment]::GetFolderPath("Desktop")
$lnkPath = $desktopPath + "\DotNetDash.lnk"
$exePath = $unzipLocation + "\" + $packageName + ".exe"

Write-Host "Uninstalling previous version"
Remove-Item $unzipLocation -Force -Recurse -Exclude $unzipLocation\logs,$unzipLocation\Plugins -ErrorAction SilentlyContinue
Write-Host "Done"

Install-ChocolateyZipPackage $packageName $url $unzipLocation
Install-ChocolateyShortcut -shortcutFilePath $lnkPath -targetPath $exePath
7 changes: 7 additions & 0 deletions chocolatey/DotNetDash/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$desktopPath = [Environment]::GetFolderPath("Desktop")
$lnkPath = $desktopPath + "\DotNetDash.lnk"

If (Test-Path $lnkPath)
{
Remove-Item $lnkPath
}

0 comments on commit edc4d08

Please sign in to comment.