From eb418639ac4effafc6c1b1ea4fa854d98d8f226b Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Thu, 29 Nov 2018 16:27:54 +0100 Subject: [PATCH] Initial zulu6 package --- zulu6/icons/zulu.svg | 1 + zulu6/tools/chocolateyInstall.ps1 | 14 ++++++++++++++ zulu6/update.ps1 | 26 ++++++++++++++++++++++++++ zulu6/zulu6.nuspec | 19 +++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 zulu6/icons/zulu.svg create mode 100644 zulu6/tools/chocolateyInstall.ps1 create mode 100644 zulu6/update.ps1 create mode 100644 zulu6/zulu6.nuspec diff --git a/zulu6/icons/zulu.svg b/zulu6/icons/zulu.svg new file mode 100644 index 0000000..029cf0f --- /dev/null +++ b/zulu6/icons/zulu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/zulu6/tools/chocolateyInstall.ps1 b/zulu6/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..67fc1bf --- /dev/null +++ b/zulu6/tools/chocolateyInstall.ps1 @@ -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 diff --git a/zulu6/update.ps1 b/zulu6/update.ps1 new file mode 100644 index 0000000..5f64cd5 --- /dev/null +++ b/zulu6/update.ps1 @@ -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 \ No newline at end of file diff --git a/zulu6/zulu6.nuspec b/zulu6/zulu6.nuspec new file mode 100644 index 0000000..e00533e --- /dev/null +++ b/zulu6/zulu6.nuspec @@ -0,0 +1,19 @@ + + + + zulu6 + + https://github.com/JamieMagee/chocolatey/tree/master/zulu6 + Zulu 6 + Azul Systems + Jammie + https://www.azul.com/products/zulu-enterprise/ + https://cdn.jsdelivr.net/gh/JamieMagee/chocolatey/zulu6/icons/zulu.svg + https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/ + false + 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. + Zulu is a certified build of OpenJDK that is fully compliant with the Java SE standard + http://docs.azul.com/zulu/zulurelnotes/ + java java6 jdk jdk6 openjdk zulu admin + + \ No newline at end of file