mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-14 07:29:12 +08:00
Merge pull request #406 from Jackbennett/development
Use a -Full parameter to download all sources rather than the minimum
This commit is contained in:
commit
1ae1194555
@ -11,7 +11,11 @@
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\build.ps1
|
.\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
|
.EXAMPLE
|
||||||
.\build -verbose
|
.\build -verbose
|
||||||
|
|
||||||
@ -27,7 +31,6 @@
|
|||||||
.LINK
|
.LINK
|
||||||
https://github.com/bliker/cmder - Project Home
|
https://github.com/bliker/cmder - Project Home
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[CmdletBinding(SupportsShouldProcess=$true)]
|
[CmdletBinding(SupportsShouldProcess=$true)]
|
||||||
Param(
|
Param(
|
||||||
# CmdletBinding will give us;
|
# CmdletBinding will give us;
|
||||||
@ -41,7 +44,10 @@ Param(
|
|||||||
[string]$saveTo = "..\vendor\",
|
[string]$saveTo = "..\vendor\",
|
||||||
|
|
||||||
# Launcher folder location
|
# Launcher folder location
|
||||||
[string]$launcher = "..\launcher"
|
[string]$launcher = "..\launcher",
|
||||||
|
|
||||||
|
# Include git with the package build
|
||||||
|
[switch]$Full,
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot\utils.ps1"
|
. "$PSScriptRoot\utils.ps1"
|
||||||
@ -55,6 +61,10 @@ Ensure-Exists $sourcesPath
|
|||||||
Ensure-Executable "7z"
|
Ensure-Executable "7z"
|
||||||
|
|
||||||
foreach ($s in $sources) {
|
foreach ($s in $sources) {
|
||||||
|
if($Full -eq $false -and $s.name -eq "msysgit"){
|
||||||
|
Continue
|
||||||
|
}
|
||||||
|
|
||||||
Write-Verbose "Getting $($s.name) from URL $($s.url)"
|
Write-Verbose "Getting $($s.name) from URL $($s.url)"
|
||||||
|
|
||||||
# We do not care about the extensions/type of archive
|
# We do not care about the extensions/type of archive
|
||||||
|
Loading…
Reference in New Issue
Block a user