Skip to content

Commit

Permalink
AU: 1 updated - origin
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Oct 16, 2018
1 parent 31f92e6 commit 2afaf77
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion automatic/origin/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [<img src="https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/8a6d25834cf98f5df36d4b3fa67a6e5677f61700/icons/origin.png" height="48" width="48" /> ![Origin](https://img.shields.io/chocolatey/v/origin.svg?label=Origin&style=for-the-badge)](https://chocolatey.org/packages/origin)
# [<img src="https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@8a6d25834cf98f5df36d4b3fa67a6e5677f61700/icons/origin.png" height="48" width="48" /> ![Origin](https://img.shields.io/chocolatey/v/origin.svg?label=Origin&style=for-the-badge)](https://chocolatey.org/packages/origin)

Origin is an online gaming, digital distribution and digital rights management (DRM) platform developed by Electronic Arts that allows users to purchase games on the internet for PC and mobile platforms, and download them with the Origin client (formerly EA Download Manager, EA Downloader and EA Link).

Expand Down
2 changes: 1 addition & 1 deletion automatic/origin/info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"a94dffefbda5808fcc5a1636abdd8791-28"|10.5.28.13288
"b6691afbc9462ae78508a75c13cdb764-28"|10.5.29.14153
4 changes: 2 additions & 2 deletions automatic/origin/origin.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>origin</id>
<version>10.5.28.13288</version>
<version>10.5.29.14153</version>
<packageSourceUrl>https://github.com/AdmiringWorm/chocolatey-packages/tree/master/automatic/origin</packageSourceUrl>
<owners>AdmiringWorm, thaiphan</owners>
<title>Origin</title>
<authors>Electronic Arts</authors>
<projectUrl>http://www.origin.com/</projectUrl>
<iconUrl>https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/8a6d25834cf98f5df36d4b3fa67a6e5677f61700/icons/origin.png</iconUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@8a6d25834cf98f5df36d4b3fa67a6e5677f61700/icons/origin.png</iconUrl>
<copyright>© 2017 Electronic Arts Inc.</copyright>
<licenseUrl>http://tos.ea.com/legalapp/WEBTERMS/US/en/PC</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
8 changes: 4 additions & 4 deletions automatic/origin/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $packageArgs = @{
packageName = $env:ChocolateyPackageName
url = 'https://download.dm.origin.com/origin/live/OriginSetup.exe'
softwareName = 'Origin*' # Probably not needed, but we add registry keys so we keep it
checksum = 'A1BED7EC3748093C6C31E1082C5441684A2AB766F253EF20DB56426505CBF189BF459C0DB794EE553B5296A7D1443C3FD1CA6CE6FBEBCDBEC94562C0C423282C'
checksum = '1D295C538FB3D006DF2B98D4A9C92E0552538BEF94D7EC896B742DF90CC4B0080BAB418F2D7D0BDF811185A0D279F3E9CB14B7F9F85BFF3F0C52CD39DDB420F6'
checksumType = 'sha512'
destination = Get-PackageCacheLocation
}
Expand All @@ -16,7 +16,7 @@ if ($env:ChocolateyForce -ne $true) {
try {
$InstalledVersion = Get-UninstallRegistryKey $packageArgs['softwareName'] | Select-Object -First 1 -Expand 'DisplayVersion'

if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.28.13288'))
if ([Version]::Parse($InstalledVersion) -ge [Version]::Parse('10.5.29.14153'))
{
Write-Host "Skipping installation because version $InstalledVersion is already installed."
return
Expand All @@ -34,10 +34,10 @@ $packageArgs['file'] = $zipFile
$packageArgs['destination'] = GetInstallLocation $pp

if ($pp.NoAutoUpdate) {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.28.13288'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $false -version '10.5.29.14153'
}
else {
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.28.13288'
CreateRegistrySettings -installPath $packageArgs['destination'] -autoUpdate $true -version '10.5.29.14153'
}

Get-ChocolateyUnzip @packageArgs
Expand Down

0 comments on commit 2afaf77

Please sign in to comment.