chore(ConEmu): release 14.9.14.0 from 9/14/2014
- change how executable is downloaded
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>ConEmu</id>
|
||||
<version>13.12.25.0</version>
|
||||
<version>14.9.14.0</version>
|
||||
<authors>Maximus5</authors>
|
||||
<owners>Xavier Decoster, Ethan J. Brown</owners>
|
||||
<licenseUrl>http://opensource.org/licenses/BSD-3-Clause</licenseUrl>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
$package = 'ConEmu'
|
||||
$version = '131225'
|
||||
$version = '140914'
|
||||
|
||||
try {
|
||||
|
||||
@@ -8,6 +8,28 @@ try {
|
||||
|
||||
$os = if ($isSytem32Bit) { "x86" } else { "x64" }
|
||||
|
||||
|
||||
$url = "http://www.fosshub.com/download/ConEmuSetup.$version.exe"
|
||||
|
||||
$chocTemp = Join-Path $Env:TEMP 'chocolatey'
|
||||
$tempInstall = Join-Path $chocTemp "ConEmu\ConEmuSetup.$version.exe"
|
||||
|
||||
Write-Host "Downloading from $url to $tempInstall"
|
||||
|
||||
# need a Referer, User-Agent and Accept to be able to download
|
||||
# other headers not required
|
||||
$client = New-Object Net.WebClient
|
||||
# Connection: keep-alive
|
||||
# DNT: 1
|
||||
# $client.Headers.Add('Accept-Encoding', 'gzip,deflate,sdch')
|
||||
# $client.Headers.Add('Accept-Language', 'en-US,en;q=0.8')
|
||||
$client.Headers.Add('Referer', 'http://www.fosshub.com/ConEmu.html')
|
||||
$client.Headers.Add('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8')
|
||||
$client.Headers.Add('User-Agent', 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2145.4 Safari/537.36')
|
||||
$client.DownloadFile($url, $tempInstall)
|
||||
|
||||
Write-Host "Download from $url complete"
|
||||
|
||||
# If having problems with untrusted cetrificates on HTTPS, use
|
||||
# solution: http://stackoverflow.com/a/561242/1579985
|
||||
$params = @{
|
||||
@@ -16,11 +38,11 @@ try {
|
||||
SilentArgs = "/p:$os /passive";
|
||||
# MSI installer, but packed inside wrapper to select x86 or x64
|
||||
# version. Therefore, treat it as EXE type.
|
||||
Url = "https://conemu-maximus5.googlecode.com/files/ConEmuSetup.$version.exe";
|
||||
ValidExitCodes = @(0);
|
||||
File = $tempInstall;
|
||||
# ValidExitCodes = @(0);
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @params
|
||||
Install-ChocolateyInstallPackage @params
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
|
Reference in New Issue
Block a user