@@ -14,7 +14,7 @@ install:
14
14
}
15
15
$bname = 'php-sdk-' + $env:BIN_SDK_VER + '.zip'
16
16
if (-not (Test-Path c:\build-cache\$bname)) {
17
- (new-object net.webclient).DownloadFile(' https://github.com/OSTC/php-sdk-binary-tools/archive/' + $bname, ' c:\build-cache\' + $bname)
17
+ Invoke-WebRequest " https://github.com/OSTC/php-sdk-binary-tools/archive/$bname" -OutFile " c:\build-cache\$bname"
18
18
}
19
19
$dname0 = 'php-sdk-binary-tools-php-sdk-' + $env:BIN_SDK_VER
20
20
$dname1 = 'php-sdk-' + $env:BIN_SDK_VER
27
27
c:\build-cache -> .appveyor.yml
28
28
29
29
environment :
30
- BIN_SDK_VER : 2.0.10
30
+ BIN_SDK_VER : 2.1.1
31
31
matrix :
32
32
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
33
33
ARCH : x64
@@ -96,9 +96,9 @@ build_script:
96
96
if ('0' -eq $env:TS) { $ts_part = '-nts' }
97
97
$bname = 'php-devel-pack-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip'
98
98
if (-not (Test-Path c:\build-cache\$bname)) {
99
- (new-object net.webclient).DownloadFile(' http://windows.php.net/downloads/releases/archives/' + $bname, ' c:\build-cache\' + $bname)
99
+ Invoke-WebRequest " http://windows.php.net/downloads/releases/archives/$bname" -OutFile " c:\build-cache\$bname"
100
100
if (-not (Test-Path c:\build-cache\$bname)) {
101
- (new-object net.webclient).DownloadFile(' http://windows.php.net/downloads/releases/' + $bname, ' c:\build-cache\' + $bname)
101
+ Invoke-WebRequest " http://windows.php.net/downloads/releases/$bname" -OutFile " c:\build-cache\$bname"
102
102
}
103
103
}
104
104
$dname0 = 'php-' + $env:PHP_VER + '-devel-' + $env:VC.toUpper() + '-' + $env:ARCH
@@ -139,9 +139,9 @@ test_script:
139
139
if ('0' -eq $env:TS) { $ts_part = '-nts' }
140
140
$bname = 'php-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip'
141
141
if (-not (Test-Path c:\build-cache\$bname)) {
142
- (new-object net.webclient).DownloadFile(' http://windows.php.net/downloads/releases/archives/' + $bname, ' c:\build-cache\' + $bname)
142
+ Invoke-WebRequest " http://windows.php.net/downloads/releases/archives/$bname" -OutFile " c:\build-cache\$bname"
143
143
if (-not (Test-Path c:\build-cache\$bname)) {
144
- (new-object net.webclient).DownloadFile(' http://windows.php.net/downloads/releases/' + $bname, ' c:\build-cache\' + $bname)
144
+ Invoke-WebRequest " http://windows.php.net/downloads/releases/$bname" -OutFile " c:\build-cache\$bname"
145
145
}
146
146
}
147
147
$dname = 'php-' + $env:PHP_VER + $ts_part + '-' + $env:VC.toUpper() + '-' + $env:ARCH
0 commit comments