Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use a -Full parameter to download all sources rather than the minimum #406

Merged
merged 1 commit into from
Feb 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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