Skip to content

Commit

Permalink
(#51) Linux: install all the required dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Dec 5, 2021
1 parent 808fe14 commit ed8178c
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions linux/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@ param (
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest

Write-Output 'Installing gperf'
apt-get install gperf
$dependencies = @(
'cmake'
'gperf'
'make'
'git'
'zlib1g-dev'
'libssl-dev'
'gperf'
'php-cli'
'cmake'
'g++'
)

Write-Output 'Installing dependencies.'
apt-get install -y @dependencies
if (!$?) { throw 'Cannot install dependencies from apt-get' }

Write-Output "Downloading NuGet client to $NuGetPath"
New-Item -Type Directory ([IO.Path]::GetDirectoryName($NuGetPath))
Invoke-WebRequest -OutFile $NuGetPath $NuGetDownloadUrl

Write-Output 'Updating the Git submobules'
git submodule update --init --recursive
if (!$?) { throw 'Cannot update the Git submodules' }

0 comments on commit ed8178c

Please sign in to comment.