Skip to content

Commit

Permalink
AU: 1 updated - vlc
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Feb 10, 2018
1 parent c42170b commit fadaf13
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions automatic/vlc/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Package can be verified like this:

1. Go to

x32: http://get.videolan.org/vlc/2.2.8/win32/vlc-2.2.8-win32.exe
x64: http://get.videolan.org/vlc/2.2.8/win64/vlc-2.2.8-win64.exe
x32: http://get.videolan.org/vlc/3.0.0/win32/vlc-3.0.0-win32.exe
x64: http://get.videolan.org/vlc/3.0.0/win64/vlc-3.0.0-win64.exe

to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'

checksum32: 3956020408C1666C168985A5AFD01310DC5976CCA67B458F9D70414D36F2608D
checksum64: E3DCF2E7C2CB6ED741E78E1BBDD198875EC626A261711C7580AEC5C95C8EDAC2
checksum32: 222CA889492850D42922DE9AD3AC073BB6DD524A832EA6841F221F980453ECDC
checksum64: 76D7CFBCDC1624623DCBF14143DB8FCAC82A1363E06AF03C1370254AFC5074E1

Using AU:

Get-RemoteChecksum http://get.videolan.org/vlc/2.2.8/win64/vlc-2.2.8-win64.exe
Get-RemoteChecksum http://get.videolan.org/vlc/3.0.0/win64/vlc-3.0.0-win64.exe

File 'LICENSE.txt' obtained from:
http://svn.videolan.org/filedetails.php?repname=VideoLAN+Server&path=%2Ftrunk%2FCOPYING
10 changes: 5 additions & 5 deletions automatic/vlc/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

$toolsDir = Split-Path $MyInvocation.MyCommand.Definition

$installerFile = if ((Get-ProcessorBits 64) -and $env:chocolateyForceX86 -ne 'true') {
Write-Host "Installing x64 bit version"; gi "$toolsDir\*_x64.exe"
} else { Write-Host "Installing x32 bit version"; gi "$toolsDir\*_x32.exe" }
$installerFile = if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne 'true') {
Write-Host "Installing x64 bit version"; Get-Item "$toolsDir\*_x64.exe"
} else { Write-Host "Installing x32 bit version"; Get-Item "$toolsDir\*_x32.exe" }

$packageArgs = @{
packageName = 'vlc'
Expand All @@ -14,13 +14,13 @@ $packageArgs = @{
validExitCodes = @(0, 1223)
}
Install-ChocolateyInstallPackage @packageArgs
rm ($toolsDir + '\*.' + $packageArgs.fileType)
Remove-Item ($toolsDir + '\*.' + $packageArgs.fileType)

$pp = Get-PackageParameters
if ($pp.Language) {
Write-Host 'Setting langauge to' $pp.Language
mkdir -force HKCU:\Software\VideoLAN\VLC
sp HKCU:\Software\VideoLAN\VLC Lang $pp.Language
Set-ItemProperty HKCU:\Software\VideoLAN\VLC Lang $pp.Language
}

$packageName = $packageArgs.packageName
Expand Down
4 changes: 2 additions & 2 deletions automatic/vlc/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $softwareNamePattern = 'VLC media player'

[array] $key = Get-UninstallRegistryKey $softwareNamePattern
if ($key.Count -eq 1) {
$key | % {
$key | ForEach-Object {
$packageArgs = @{
packageName = $packageName
silentArgs = "/x86=0 /S"
Expand All @@ -25,6 +25,6 @@ elseif ($key.Count -gt 1) {
Write-Warning "$key.Count matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert package maintainer the following keys were matched:"
$key | % {Write-Warning "- $_.DisplayName"}
$key | ForEach-Object {Write-Warning "- $_.DisplayName"}
}

2 changes: 1 addition & 1 deletion automatic/vlc/vlc.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>vlc</id>
<title>VLC media player</title>
<version>2.2.8</version>
<version>3.0.0</version>
<authors>VideoLAN Organization</authors>
<owners>chocolatey, Rob Reynolds</owners>
<summary>VLC Media Player</summary>
Expand Down

0 comments on commit fadaf13

Please sign in to comment.