Skip to content

Add Chocolatey package #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build/win64/choco/README.md
Original file line number Diff line number Diff line change
@@ -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
```
20 changes: 20 additions & 0 deletions build/win64/choco/tidy-html5.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>tidy-html5</id>
<version>5.1.8</version>
<title>tidy-html5</title>
<authors>Geoff McLane, Michael[tm] Smith, Jim Derry</authors>
<owners>Geoff McLane</owners>
<summary>The granddaddy of HTML tools, with support for modern standards http.</summary>
<description>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.</description>
<projectUrl>http://www.html-tidy.org</projectUrl>
<docsUrl>http://www.html-tidy.org/documentation/</docsUrl>
<bugTrackerUrl>https://github.com/htacg/tidy-html5/issues</bugTrackerUrl>
<packageSourceUrl>https://github.com/htacg/tidy-html5/tree/master/build/win64/choco</packageSourceUrl>
<tags>HTML tidy HTML5</tags>
<licenseUrl>https://github.com/htacg/tidy-html5/blob/master/LICENSE.md</licenseUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<iconUrl>http://www.balthisar.com/assets/images/blog/tidy-html5-logo-071e790a.png</iconUrl>
</metadata>
</package>
5 changes: 5 additions & 0 deletions build/win64/choco/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -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 "tidy-html5" "$url" "$unzipLocation" "$url64bit"