Skip to content

Commit

Permalink
Move $arch_name to tools/blackfire.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 7, 2020
1 parent 678e33a commit 8da0d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/scripts/tools/blackfire.ps1
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/scripts/win32.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8da0d5c

Please sign in to comment.