Skip to content

Commit

Permalink
Merge pull request cmderdev#406 from Jackbennett/development
Browse files Browse the repository at this point in the history
Use a -Full parameter to download all sources rather than the minimum
  • Loading branch information
MartiUK committed Feb 25, 2015
2 parents e566589 + 31c169a commit 1ae1194
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
.EXAMPLE
.\build.ps1
Executes the default build for cmder, this is equivalent to the "minimum" style package in the releases
Executes the default build for cmder; Conemu, clink. This is equivalent to the "minimum" style package in the releases
.EXAMPLE
.\build.ps1 -Full
Executes a full build for cmder, including git. This is equivalent to the "full" style package in the releases
.EXAMPLE
.\build -verbose
Expand All @@ -27,7 +31,6 @@
.LINK
https://github.com/bliker/cmder - Project Home
#>

[CmdletBinding(SupportsShouldProcess=$true)]
Param(
# CmdletBinding will give us;
Expand All @@ -41,7 +44,10 @@ Param(
[string]$saveTo = "..\vendor\",

# Launcher folder location
[string]$launcher = "..\launcher"
[string]$launcher = "..\launcher",

# Include git with the package build
[switch]$Full,
)

. "$PSScriptRoot\utils.ps1"
Expand All @@ -55,6 +61,10 @@ Ensure-Exists $sourcesPath
Ensure-Executable "7z"

foreach ($s in $sources) {
if($Full -eq $false -and $s.name -eq "msysgit"){
Continue
}

Write-Verbose "Getting $($s.name) from URL $($s.url)"

# We do not care about the extensions/type of archive
Expand Down

0 comments on commit 1ae1194

Please sign in to comment.