aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-10-24 00:20:05 +0200
committerGitHub <noreply@github.com>2017-10-24 00:20:05 +0200
commitc7d14ef4e588e2f2ed3bcff78b6e9ea5366edb90 (patch)
treeaf9d7be89932cc109fd1f98641ea23abbb8e8d7b
parent569d275d763f499cce9673fcf118dcc8d59d2eeb (diff)
downloadmitmproxy-c7d14ef4e588e2f2ed3bcff78b6e9ea5366edb90.tar.gz
mitmproxy-c7d14ef4e588e2f2ed3bcff78b6e9ea5366edb90.tar.bz2
mitmproxy-c7d14ef4e588e2f2ed3bcff78b6e9ea5366edb90.zip
Fix AppVeyor builds (#2604)
-rw-r--r--.appveyor.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 909a9149..160cdf73 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -46,8 +46,9 @@ test_script:
) {
echo "Decrypt license..."
tox -e rtool -- decrypt release\installbuilder\license.xml.enc release\installbuilder\license.xml
+ $ibVersion = "17.9.0"
$ibSetup = "C:\projects\mitmproxy\release\installbuilder-installer.exe"
- $ibVersion = "17.4.0"
+ $ibCli = "C:\Program Files (x86)\BitRock InstallBuilder Enterprise $ibVersion\bin\builder-cli.exe"
if (!(Test-Path $ibSetup)) {
echo "Download InstallBuilder..."
(New-Object System.Net.WebClient).DownloadFile(
@@ -56,15 +57,18 @@ test_script:
)
}
echo "Install InstallBuilder..."
- Start-Process $ibSetup "--mode unattended --unattendedmodeui none" -Wait
+ Start-Process $ibSetup "--mode unattended --unattendedmodeui none" -PassThru -NoNewWindow -Wait
+ # Wait until executable exists - no idea why this is necessary.
+ while (!(Test-Path $ibCli)) { Start-Sleep 0.1 }
echo "Run InstallBuilder..."
- & "C:\Program Files (x86)\BitRock InstallBuilder Enterprise $ibVersion\bin\builder-cli.exe" `
+ &$ibCli `
build `
.\release\installbuilder\mitmproxy.xml `
windows `
--license .\release\installbuilder\license.xml `
--setvars project.version=$Env:VERSION `
--verbose
+ while (!(Test-Path C:\projects\mitmproxy\release\dist\mitmproxy-*-windows-installer.exe)) { Start-Sleep 0.1 }
echo "Installer build completed."
}