aboutsummaryrefslogtreecommitdiffstats
path: root/.appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml28
1 files changed, 27 insertions, 1 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 5cf194a9..b95b23e3 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -16,6 +16,8 @@ environment:
secure: 6yBwmO5gv4vAwoFYII8qjQ==
SNAPSHOT_PASS:
secure: LPjrtFrWxYhOVGXzfPRV1GjtZE/wHoKq9m/PI6hSalfysUK5p2DxTG9uHlb4Q9qV
+ RTOOL_KEY:
+ secure: 0a+UUNbA+JjquyAbda4fd0JmiwL06AdG6torRPdCvbPDbKHnaW/BHHp1nRPytOKM
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
@@ -30,6 +32,29 @@ test_script:
tox -e wheel
tox -e rtool -- bdist
+ - ps: |
+ if(
+ ($Env:TOXENV -match "py35") -and
+ (($Env:APPVEYOR_REPO_BRANCH -In ("master", "pyinstaller")) -or ($Env:APPVEYOR_REPO_TAG -match "true"))
+ ) {
+ tox -e rtool -- decrypt release\installbuilder\license.xml.enc release\installbuilder\license.xml
+ if (!(Test-Path "C:\projects\mitmproxy\release\installbuilder-installer.exe")) {
+ "Download InstallBuilder..."
+ (New-Object System.Net.WebClient).DownloadFile(
+ "https://installbuilder.bitrock.com/installbuilder-enterprise-16.11.1-windows-installer.exe",
+ "C:\projects\mitmproxy\release\installbuilder-installer.exe"
+ )
+ }
+ Start-Process "C:\projects\mitmproxy\release\installbuilder-installer.exe" "--mode unattended --unattendedmodeui none" -Wait
+ & 'C:\Program Files (x86)\BitRock InstallBuilder Enterprise 16.11.1\bin\builder-cli.exe' `
+ build `
+ .\release\installbuilder\mitmproxy.xml `
+ windows `
+ --license .\release\installbuilder\license.xml `
+ --setvars project.version=$Env:VERSION `
+ --verbose
+ }
+
deploy_script:
# we build binaries on every run, but we only upload them for master snapshots or tags.
ps: |
@@ -37,10 +62,11 @@ deploy_script:
($Env:TOXENV -match "py35") -and
(($Env:APPVEYOR_REPO_BRANCH -In ("master", "pyinstaller")) -or ($Env:APPVEYOR_REPO_TAG -match "true"))
) {
- tox -e rtool -- upload-snapshot --bdist --wheel
+ tox -e rtool -- upload-snapshot --bdist --wheel --installer
}
cache:
+ - C:\projects\mitmproxy\release\installbuilder-installer.exe -> .appveyor.yml
- C:\Users\appveyor\AppData\Local\pip\cache
notifications: