Permalink
Browse files

Fixed an issue in the powershell script.

  • Loading branch information...
jusjoken committed Nov 13, 2017
1 parent 911d96b commit 299e8c58c5c6e88dc4064de0dbe745b9e610d2e4
Showing with 18 additions and 13 deletions.
  1. +18 −13 installer/wix/SageTVSetup/InstallerBuild.ps1
@@ -429,43 +429,48 @@ CreateVersionHeader
# must be run after GetVersionStr
CreateWIXVersionInclude
# perform source build
If ((!$i) -and (!$j) -and (!$nb)){
if ( -not ( Compile-Source "Release" ) ) {
$result = 1
}
if ( -not ( Compile-Source "Client" ) ) {
$result = 1
}
if ( -not ( Compile-Source "Service" ) ) {
$result = 1
}
}
# determine which targets to work on
[boolean]$buildneeded = $false
$targets = @()
[boolean]$javaJar = $false
[boolean]$javaMiniJar = $false
If ($A) { #do All Targets
$targets = @("Server","Client","Placeshifter")
$javaJar = $true
$javaMiniJar = $true
$buildneeded = $true
}Else{
If ($S) {
$targets += "Server"
$javaJar = $true
$buildneeded = $true
}
If ($C) {
$targets += "Client"
$javaJar = $true
$buildneeded = $true
}
If ($P) {
$targets += "Placeshifter"
$javaMiniJar = $true
$buildneeded = $true
}
}
Write-Host "Processing" $targets
# perform source build
If ((!$i) -and (!$j) -and (!$nb) -and ($buildneeded)){
if ( -not ( Compile-Source "Release" ) ) {
$result = 1
}
if ( -not ( Compile-Source "Client" ) ) {
$result = 1
}
if ( -not ( Compile-Source "Service" ) ) {
$result = 1
}
}
# build java source if required
If ((!$b) -and (!$i) -and (!$nj)){
If ($javaJar){

0 comments on commit 299e8c5

Please sign in to comment.