From 060cb28098776c39b06cac30a64c2938b259c9f7 Mon Sep 17 00:00:00 2001 From: Peter Mounce Date: Mon, 20 Feb 2017 14:09:14 +0000 Subject: [PATCH] Add unity-ep package --- unity-ep/tools/chocolateyinstall.ps1 | 17 +++++++++++++ unity-ep/unity-ep.nuspec | 31 +++++++++++++++++++++++ unity-ep/update.ps1 | 37 ++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 unity-ep/tools/chocolateyinstall.ps1 create mode 100644 unity-ep/unity-ep.nuspec create mode 100644 unity-ep/update.ps1 diff --git a/unity-ep/tools/chocolateyinstall.ps1 b/unity-ep/tools/chocolateyinstall.ps1 new file mode 100644 index 00000000..9d383b5f --- /dev/null +++ b/unity-ep/tools/chocolateyinstall.ps1 @@ -0,0 +1,17 @@ +$ErrorActionPreference = 'Stop'; + +$packageName = 'unity-ep' +$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" +$url = 'https://download.unity3d.com/download_unity/88d00a7498cd/WindowsExampleProjectInstaller/UnityExampleProjectSetup-5.5.1f1.exe' +$checksum = 'c95f1767386d4b33064d496aeb917689e5cb46b6a56b09b14edba7035259303e' + +$packageArgs = @{ + packageName = $packageName + fileType = 'EXE' + url = $url + checksum = $checksum + silentArgs = '/S' + validExitCodes = @(0) +} + +Install-ChocolateyPackage @packageArgs diff --git a/unity-ep/unity-ep.nuspec b/unity-ep/unity-ep.nuspec new file mode 100644 index 00000000..9a2d67dd --- /dev/null +++ b/unity-ep/unity-ep.nuspec @@ -0,0 +1,31 @@ + + + + unity-ep + 5.5.1 + https://github.com/jtcmedia/chocolatey-packages/tree/master/unity-ep + LudicrousByte + Unity The Example Project + Unity Technologies + https://unity3d.com/ + https://cdn.rawgit.com/jtcmedia/chocolatey-packages/unity-icon/icons/unity.png + Copyright 2017 Unity Technologies + https://unity3d.com/legal/terms-of-service/software + true + https://docs.unity3d.com/Manual/index.html + unity admin ep windows store .net + This package adds The Example Project to Unity. + +This package adds The Example Project to Unity. + + +* [Release Notes](https://unity3d.com/unity/whats-new/) + + + + + + + + + diff --git a/unity-ep/update.ps1 b/unity-ep/update.ps1 new file mode 100644 index 00000000..a4811675 --- /dev/null +++ b/unity-ep/update.ps1 @@ -0,0 +1,37 @@ +import-module au + +$releases = 'https://unity3d.com/get-unity/update' + + +function global:au_SearchReplace { + @{ + ".\tools\chocolateyinstall.ps1" = @{ + "(^[$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'" + "(^[$]checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'" + } + + ".\unity-ep.nuspec" = @{ + "(\