Add packaging dependencies to Start-PSBootstrap
This commit is contained in:
parent
17a274b670
commit
b1621edbc9
14
build.psm1
14
build.psm1
|
@ -436,7 +436,8 @@ function Start-PSBootstrap {
|
|||
[CmdletBinding()]param(
|
||||
[ValidateSet("dev", "beta", "preview")]
|
||||
[string]$Channel = "rel-1.0.0",
|
||||
[string]$Version = "latest"
|
||||
[string]$Version = "latest",
|
||||
[switch]$Package
|
||||
)
|
||||
|
||||
log "Installing Open PowerShell build dependencies"
|
||||
|
@ -451,6 +452,8 @@ function Start-PSBootstrap {
|
|||
$Deps += "curl", "g++", "cmake", "make"
|
||||
# .NET Core required runtime libraries
|
||||
$Deps += "libicu52", "libunwind8"
|
||||
# Packaging tools
|
||||
if ($Package) { $Deps += "ruby-dev" }
|
||||
# Install dependencies
|
||||
sudo apt-get install -y -qq $Deps
|
||||
} elseif ($IsCentos) {
|
||||
|
@ -458,6 +461,8 @@ function Start-PSBootstrap {
|
|||
$Deps += "curl", "gcc-c++", "cmake", "make"
|
||||
# .NET Core required runtime libraries
|
||||
$Deps += "libicu", "libunwind"
|
||||
# Packaging tools
|
||||
if ($Package) { $Deps += "ruby-devel", "rpmbuild" }
|
||||
# Install dependencies
|
||||
sudo yum install -y -q $Deps
|
||||
} elseif ($IsOSX) {
|
||||
|
@ -466,6 +471,8 @@ function Start-PSBootstrap {
|
|||
$Deps += "curl", "cmake"
|
||||
# .NET Core required runtime libraries
|
||||
$Deps += "openssl"
|
||||
# Packaging tools
|
||||
if ($Package) { $Deps += "ruby" }
|
||||
# Install dependencies
|
||||
brew install $Deps
|
||||
# OpenSSL libraries must be updated
|
||||
|
@ -474,6 +481,11 @@ function Start-PSBootstrap {
|
|||
Write-Warning "This script only supports Ubuntu 14.04, CentOS 7, and OS X, you must install dependencies manually!"
|
||||
}
|
||||
|
||||
# Install [fpm](https://github.com/jordansissel/fpm)
|
||||
if ($Package) {
|
||||
gem install fpm
|
||||
}
|
||||
|
||||
$obtainUrl = "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain"
|
||||
|
||||
# Install for Linux and OS X
|
||||
|
|
Loading…
Reference in a new issue