mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Move $arch_name to tools/blackfire.ps1
This commit is contained in:
parent
682b1f5e44
commit
7cfd76cc1b
@ -1,5 +1,9 @@
|
||||
# Function to add blackfire and blackfire-agent.
|
||||
Function Add-Blackfire() {
|
||||
$arch_name ='amd64'
|
||||
if(-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
|
||||
$arch_name = '386'
|
||||
}
|
||||
$agent_version = (Invoke-RestMethod https://blackfire.io/api/v1/releases).agent
|
||||
$url = "https://packages.blackfire.io/binaries/blackfire-agent/${agent_version}/blackfire-agent-windows_${arch_name}.zip"
|
||||
Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $bin_dir\blackfire.zip >$null 2>&1
|
||||
|
@ -289,10 +289,8 @@ $master_version = '8.0'
|
||||
$cert_source='CurrentUser'
|
||||
|
||||
$arch = 'x64'
|
||||
$arch_name ='amd64'
|
||||
if(-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
|
||||
$arch = 'x86'
|
||||
$arch_name = '386'
|
||||
}
|
||||
|
||||
$ts = $env:PHPTS -eq 'ts'
|
||||
|
Loading…
Reference in New Issue
Block a user