Remove the -full build switch. Add a compile example.

To get the functionality of -Full back just supply your own sources.json
with the vendors you wish.
Fix a typo and update the project url.
This commit is contained in:
Jack Bennett 2015-10-14 18:19:08 +01:00
parent f71a1f3903
commit 45cdfc33f2

View File

@ -13,9 +13,9 @@
Executes the default build for Cmder; Conemu, clink. This is equivalent to the "minimum" style package in the releases
.EXAMPLE
.\build.ps1 -Full
.\build.ps1 -Compile
Executes a full build for Cmder, including git. This is equivalent to the "full" style package in the releases
Recompile the launcher executable if you have the requisite build tools for C++ installed.
.EXAMPLE
.\build -verbose
@ -29,7 +29,7 @@
Samuel Vasko, Jack Bennett
Part of the Cmder project.
.LINK
https://github.com/bliker/cmder - Project Home
http://cmder.net/ - Project Home
#>
[CmdletBinding(SupportsShouldProcess=$true)]
Param(
@ -49,9 +49,6 @@ Param(
# Config folder location
[string]$config = "..\config",
# Include git with the package build
[switch]$Full,
# New launcher if you have MSBuild tools installed
[switch]$Compile
)
@ -79,10 +76,6 @@ if ($config -ne "") {
foreach ($s in $sources) {
if($Full -eq $false -and $s.name -eq "git-for-windows"){
Continue
}
Write-Verbose "Getting $($s.name) from URL $($s.url)"
# We do not care about the extensions/type of archive
@ -113,7 +106,7 @@ if($Compile) {
msbuild CmderLauncher.vcxproj /p:configuration=Release
Pop-Location
} else {
Write-Warning "You are not building a launcher, Use -Complie"
Write-Warning "You are not building a launcher, Use -Compile"
Write-Warning "This cannot be a release. Test build only!"
}