Skip to content

Commit

Permalink
Fixed Zephir installer
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jan 14, 2019
1 parent 9e4bac8 commit 0780c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,3 @@ artifacts:
- path: '.\php-appveyor.zip'
type: zip
name: php-appveyor

on_success:
- ps: Get-Host
- ps: $PSVersionTable
8 changes: 4 additions & 4 deletions php-appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,17 @@ function InstallZephir {
)

$InstallPath = ResolvePath -Path $InstallPath
$ZephirBatch = "${InstallPath}\zephir.bat"

if (-not (Test-Path -Path $ZephirBatch)) {
$ZephirPhar = "${InstallPath}\zephir.phar"
$ZephirPhar = "${InstallPath}\zephir.phar"
$ZephirBatch = "${InstallPath}\zephir.bat"

if (-not (Test-Path -Path $ZephirPhar)) {
$BaseUri = "https://github.com/phalcon/zephir/releases/download"
$RemoteUrl = "${BaseUri}/${Version}/zephir.phar"

DownloadFile "${RemoteUrl}" "${ZephirPhar}"

Write-Output '@echo off' | Out-File -Encoding "ASCII" -Append $ZephirBatch
Write-Output '@echo off' | Out-File -Encoding "ASCII" $ZephirBatch
Write-Output "${PhpPath}\php.exe `"${ZephirPhar}`" %*" | Out-File -Encoding "ASCII" -Append $ZephirBatch
}
}
Expand Down

0 comments on commit 0780c99

Please sign in to comment.