Skip to content

Commit 03fbdff

Browse files
committed
Cleanup the downloaded zip for install [skip ci]
1 parent 34af945 commit 03fbdff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scripts/Get-Php.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ $file = "php-$semver$ts-Win32-$vs-$Architecture.zip"
8080
$repo = "shivammathur/php-builder-windows"
8181
Get-File -Url "https://github.com/$repo/releases/download/php$Version/$file" -FallbackUrl "https://dl.cloudsmith.io/public/$repo/raw/files/$file" -OutFile $Path\master.zip -Retries 3
8282
Expand-Archive -Path $Path\master.zip -DestinationPath $Path -Force
83+
Remove-Item -Path $Path\master.zip
8384
Copy-Item $Path\php.ini-production -Destination $Path\php.ini
8485
Move-Item -Path $Path\ext\php_oci8*.dll -Destination $Path\ext\php_oci8.dll -Force
8586
$ts = 'nts'

scripts/Get-PhpNightly.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ if($Version -match '8.[0-4]') {
7474
$repo = "shivammathur/php-builder-windows"
7575
Get-File -Url "https://github.com/$repo/releases/download/php$Version/$file" -FallbackUrl "https://dl.cloudsmith.io/public/$repo/raw/files/$file" -OutFile $Path\master.zip -Retries 3
7676
Expand-Archive -Path $Path\master.zip -DestinationPath $Path -Force
77+
Remove-Item -Path $Path\master.zip
7778
Copy-Item $Path\php.ini-production -Destination $Path\php.ini
7879
}
7980
Move-Item -Path $Path\ext\php_oci8*.dll -Destination $Path\ext\php_oci8.dll -Force

0 commit comments

Comments
 (0)