Skip to content

Commit f949713

Browse files
committed
Win32: Downloading PHP Dev pack source code [win build]
1 parent 249051a commit f949713

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.appveyor.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,16 @@ install:
126126
- echo Install PHP Dev pack
127127
# ==================================================
128128
- cd C:\
129-
- ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', 'C:\php-dev.zip')
129+
- ps: >-
130+
If ($env:PHP_TYPE -Match "nts-Win32") {
131+
$env:DEVEL_PACK_VERSION="${env:PHP_VERSION}-nts-Win32-VC${env:PHP_VC}-${env:PLATFORM}"
132+
} Else {
133+
$env:DEVEL_PACK_VERSION="${env:PHP_VERSION}-Win32-VC${env:PHP_VC}-${env:PLATFORM}"
134+
}
135+
# ==================================================
136+
- echo Downloading PHP Dev pack source code [http://windows.php.net/downloads/releases/php-devel-pack-%DEVEL_PACK_VERSION%.zip]
137+
# ==================================================
138+
- ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:DEVEL_PACK_VERSION} + '.zip', 'C:\php-dev.zip')
130139
- 7z.exe x php-dev.zip | FIND /V "ing "
131140
- ps: Rename-Item "php-${env:PHP_VERSION}-devel-VC${env:PHP_VC}-${env:PLATFORM}" C:\php-devpack
132141
# ==================================================

0 commit comments

Comments
 (0)