Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
Initial zulu6 package
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Nov 29, 2018
1 parent 648eeca commit eb41863
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions zulu6/icons/zulu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions zulu6/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$ErrorActionPreference = 'Stop';

$packageArgs = @{
packageName = 'zulu6'
fileType = 'msi'
url64bit = ''
checksum64 = ''
checksumType64= 'sha256'
silentArgs = '/qn /norestart'
validExitCodes= @(0)
softwareName = 'Zulu 6*'
}

Install-ChocolateyPackage @packageArgs
26 changes: 26 additions & 0 deletions zulu6/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import-module au

$releases = 'https://www.azul.com/downloads/zulu/zulu-windows/'

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url64bit\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"(?i)(^\s*checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
}
}
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$url64 = $download_page.links | ? href -match '^.*jdk6.*.msi$' | % href | select -First 1
$version = (Split-Path $url64 -Leaf | Select-String -Pattern '^zulu6((\.\d+)+)').Matches.Value.Substring(4)

@{
URL64 = $url64
Version = $version
}
}

update -ChecksumFor 64
19 changes: 19 additions & 0 deletions zulu6/zulu6.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>zulu6</id>
<version></version>
<packageSourceUrl>https://github.com/JamieMagee/chocolatey/tree/master/zulu6</packageSourceUrl>
<title>Zulu 6</title>
<authors>Azul Systems</authors>
<owners>Jammie</owners>
<projectUrl>https://www.azul.com/products/zulu-enterprise/</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/JamieMagee/chocolatey/zulu6/icons/zulu.svg</iconUrl>
<licenseUrl>https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Zulu is a certified build of OpenJDK that is fully compliant with the Java SE standard. Zulu is 100% open source and freely downloadable. Now Java developers, system administrators and end users can enjoy the full benefits of open source Java with deployment flexibility and control over upgrade timing.</description>
<summary>Zulu is a certified build of OpenJDK that is fully compliant with the Java SE standard</summary>
<releaseNotes>http://docs.azul.com/zulu/zulurelnotes/</releaseNotes>
<tags>java java6 jdk jdk6 openjdk zulu admin</tags>
</metadata>
</package>

0 comments on commit eb41863

Please sign in to comment.