Skip to content

Commit

Permalink
Merge pull request #22 from paulcbetts/squirrel
Browse files Browse the repository at this point in the history
Add an installer based on Squirrel.Windows
  • Loading branch information
davkean committed Feb 9, 2015
2 parents 62e5da8 + 6e12b80 commit 13a2969
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CreateInstaller.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$tempDirectoryName = '.\__squirrel_temp__'

if ($DTE -eq $null) {
echo "Run this from the NuGet Package Console inside VS"
exit 1
}

mkdir -Path $tempDirectoryName
rm -r -fo "$tempDirectoryName\*.nupkg"
NuGet pack .\src\AudioSwitcher\AudioSwitcher.csproj -OutputDirectory "$tempDirectoryName" -Prop Configuration=Release
ls "$tempDirectoryName\*.nupkg" | %{Squirrel --releasify $_ -p .\src\packages -r .\Releases}
rm -r -fo "$tempDirectoryName"
4 changes: 4 additions & 0 deletions src/.nuget/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NuGet.CommandLine" version="2.8.3" />
</packages>
7 changes: 6 additions & 1 deletion src/AudioSwitcher.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30324.0
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AudioSwitcher", "AudioSwitcher\AudioSwitcher.csproj", "{8F82476F-30DC-47A5-80A0-AB8437E4EEA5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{44D8C18F-D4F9-4248-8AB7-3F4A8CBA3517}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
37 changes: 37 additions & 0 deletions src/AudioSwitcher/AudioSwitcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,42 @@
<ApplicationManifest>Properties\App.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="DeltaCompressionDotNet">
<HintPath>..\packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.dll</HintPath>
</Reference>
<Reference Include="DeltaCompressionDotNet.MsDelta">
<HintPath>..\packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.MsDelta.dll</HintPath>
</Reference>
<Reference Include="DeltaCompressionDotNet.PatchApi">
<HintPath>..\packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.PatchApi.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib">
<HintPath>..\packages\squirrel.windows.0.8.0\lib\Net45\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Web.XmlTransform">
<HintPath>..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil">
<HintPath>..\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb">
<HintPath>..\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb">
<HintPath>..\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Rocks">
<HintPath>..\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core">
<HintPath>..\packages\NuGet.Core.2.8.3\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="Splat">
<HintPath>..\packages\Splat.1.5.1\lib\Net45\Splat.dll</HintPath>
</Reference>
<Reference Include="Squirrel">
<HintPath>..\packages\squirrel.windows.0.8.0\lib\Net45\Squirrel.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Drawing" />
Expand Down Expand Up @@ -192,6 +228,7 @@
<Compile Include="Win32\RegistryKeyExtensions.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\App.config" />
<None Include="Properties\App.manifest" />
<None Include="Properties\Settings.settings">
Expand Down
6 changes: 3 additions & 3 deletions src/AudioSwitcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("AudioSwitcher")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("App that lets you easily switch Windows audio devices")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("David Kean")]
[assembly: AssemblyProduct("AudioSwitcher")]
[assembly: AssemblyCopyright("Copyright (c) David Kean")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: NeutralResourcesLanguage("en")]
9 changes: 9 additions & 0 deletions src/AudioSwitcher/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DeltaCompressionDotNet" version="1.0.0" targetFramework="net45" />
<package id="Microsoft.Web.Xdt" version="2.1.1" targetFramework="net45" />
<package id="Mono.Cecil" version="0.9.5.4" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.3" targetFramework="net45" />
<package id="Splat" version="1.5.1" targetFramework="net45" />
<package id="squirrel.windows" version="0.8.0" targetFramework="net45" />
</packages>

0 comments on commit 13a2969

Please sign in to comment.