From 5d5b76605af7ce78e5bcaf88c5b88ee4e1e73ad8 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Mon, 14 Sep 2015 09:50:35 +0200 Subject: [PATCH 1/2] Add Chocolatey package --- build/win64/choco/README.md | 18 +++++++++++++++++ build/win64/choco/tidy-html5.nuspec | 20 +++++++++++++++++++ build/win64/choco/tools/chocolateyInstall.ps1 | 5 +++++ 3 files changed, 43 insertions(+) create mode 100644 build/win64/choco/README.md create mode 100644 build/win64/choco/tidy-html5.nuspec create mode 100644 build/win64/choco/tools/chocolateyInstall.ps1 diff --git a/build/win64/choco/README.md b/build/win64/choco/README.md new file mode 100644 index 000000000..03c250b6f --- /dev/null +++ b/build/win64/choco/README.md @@ -0,0 +1,18 @@ +# tidy-html5 + +[![Latest version released](https://img.shields.io/chocolatey/v/tidy-html5.svg)](https://chocolatey.org/packages/tidy-html5) +[![Package downloads count](https://img.shields.io/chocolatey/dt/tidy-html5.svg)](https://chocolatey.org/packages/tidy-html5) + +Chocolatey package for tidy-html5. + +## Build chocolatey package + +``` +cpack +``` + +## Test local chocolatey package + +``` +choco install -y tidy-html5 -source . -prerelase +``` diff --git a/build/win64/choco/tidy-html5.nuspec b/build/win64/choco/tidy-html5.nuspec new file mode 100644 index 000000000..8b10f11b4 --- /dev/null +++ b/build/win64/choco/tidy-html5.nuspec @@ -0,0 +1,20 @@ + + + + tidy-html5 + 5.1.8 + tidy-html5 + Geoff McLane, Michael[tm] Smith, Jim Derry + Geoff McLane + The granddaddy of HTML tools, with support for modern standards http. + Tidy - The granddaddy of HTML tools. Supports modern standards. Tidy tidies HTML and XML. It can tidy your documents by itself, and developers can easily integrate its features into even more powerful tools. + http://www.html-tidy.org + http://www.html-tidy.org/documentation/ + https://github.com/htacg/tidy-html5/issues + https://github.com/htacg/tidy-html5/tree/master/build/win64/choco + HTML tidy HTML5 + https://github.com/htacg/tidy-html5/blob/master/LICENSE.md + true + http://www.balthisar.com/assets/images/blog/tidy-html5-logo-071e790a.png + + diff --git a/build/win64/choco/tools/chocolateyInstall.ps1 b/build/win64/choco/tools/chocolateyInstall.ps1 new file mode 100644 index 000000000..dd2cb65ff --- /dev/null +++ b/build/win64/choco/tools/chocolateyInstall.ps1 @@ -0,0 +1,5 @@ +$url = 'http://www.htacg.org/binaries/binaries/tidy-5.1.8/tidy-5.1.8-win32.zip' +$url64bit = 'http://www.htacg.org/binaries/binaries/tidy-5.1.8/tidy-5.1.8-win64.zip' +$unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" + +Install-ChocolateyZipPackage "packer" "$url" "$unzipLocation" "$url64bit" From 30853a3b9df39a8fbd751663288fe36607bfaf7d Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Mon, 14 Sep 2015 09:55:44 +0200 Subject: [PATCH 2/2] Fix name --- build/win64/choco/tools/chocolateyInstall.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/win64/choco/tools/chocolateyInstall.ps1 b/build/win64/choco/tools/chocolateyInstall.ps1 index dd2cb65ff..aaed3b68c 100644 --- a/build/win64/choco/tools/chocolateyInstall.ps1 +++ b/build/win64/choco/tools/chocolateyInstall.ps1 @@ -2,4 +2,4 @@ $url = 'http://www.htacg.org/binaries/binaries/tidy-5.1.8/tidy-5.1.8-win32.zip' $url64bit = 'http://www.htacg.org/binaries/binaries/tidy-5.1.8/tidy-5.1.8-win64.zip' $unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -Install-ChocolateyZipPackage "packer" "$url" "$unzipLocation" "$url64bit" +Install-ChocolateyZipPackage "tidy-html5" "$url" "$unzipLocation" "$url64bit"