Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Created chocolatey installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Ginnivan committed Mar 13, 2012
1 parent ea6206f commit c40505c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -15,4 +15,5 @@ artifacts/
post-build*
_ReSharper.*
deploy-to-ec2*
TestResults/
TestResults/
build/
4 changes: 3 additions & 1 deletion build.cmd
Expand Up @@ -4,4 +4,6 @@ if "%config%" == "" (
set config=Debug
)

%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /p:Configuration="%config%" /t:Test /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

pause
6 changes: 5 additions & 1 deletion build.proj
Expand Up @@ -22,7 +22,11 @@
</Target>

<Target Name="Chocolatey" DependsOnTargets="Test">

<Message Text="$(MSBuildProjectDirectory)\src\Packages\NuGet.CommandLine.*\tools\NuGet.exe" />
<ItemGroup>
<NuGet Include="$(MSBuildProjectDirectory)\src\Packages\NuGet.CommandLine.*\tools\NuGet.exe" />
</ItemGroup>
<Exec Command="@(NuGet) pack $(MSBuildProjectDirectory)\tools\chocolatey\pretzel.nuspec -OutputDirectory $(MSBuildProjectDirectory)\build" />
</Target>

</Project>
27 changes: 4 additions & 23 deletions src/Pretzel/Properties/AssemblyInfo.cs
@@ -1,36 +1,17 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Pretzel")]
[assembly: AssemblyDescription("A simple static site generator for Windows")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Code52")]
[assembly: AssemblyProduct("Pretzel")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyCopyright("Copyright © Code52 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3c5a833b-daac-49ef-bba8-1000cd0e3c4f")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
14 changes: 14 additions & 0 deletions tools/chocolatey/pretzel.nuspec
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>pretzel</id>
<version>0.1.0</version>
<title>Pretzel</title>
<authors>Code52</authors>
<owners>Code52</owners>
<projectUrl>https://github.com/Code52/pretzel</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple, pluggable site generation tool for .NET developers and Windows users</description>
<tags>Jekyll Liquid Razor Markdown</tags>
</metadata>
</package>
13 changes: 13 additions & 0 deletions tools/chocolatey/tools/chocolateyInstall.ps1
@@ -0,0 +1,13 @@
try {
$sysDrive = $env:SystemDrive
$pretzelPath = "$sysDrive\tools\pretzel"

Install-ChocolateyZipPackage 'Pretzel' 'https://github.com/downloads/Code52/pretzel/Pretzel-0.1.0.zip' $pretzelPath
Install-ChocolateyPath $pretzelPath

write-host 'pretzel has been installed.'
Write-ChocolateySuccess 'pretzel'
} catch {
Write-ChocolateyFailure 'pretzel' $($_.Exception.Message)
throw
}

0 comments on commit c40505c

Please sign in to comment.