mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
parent
acd568c6fa
commit
ab1087ed4e
@ -44,22 +44,28 @@ test_script:
|
|||||||
($Env:TOXENV -match "py35") -and !$Env:APPVEYOR_PULL_REQUEST_NUMBER -and
|
($Env:TOXENV -match "py35") -and !$Env:APPVEYOR_PULL_REQUEST_NUMBER -and
|
||||||
(($Env:APPVEYOR_REPO_BRANCH -In ("master", "pyinstaller")) -or ($Env:APPVEYOR_REPO_TAG -match "true"))
|
(($Env:APPVEYOR_REPO_BRANCH -In ("master", "pyinstaller")) -or ($Env:APPVEYOR_REPO_TAG -match "true"))
|
||||||
) {
|
) {
|
||||||
|
echo "Decrypt license..."
|
||||||
tox -e rtool -- decrypt release\installbuilder\license.xml.enc release\installbuilder\license.xml
|
tox -e rtool -- decrypt release\installbuilder\license.xml.enc release\installbuilder\license.xml
|
||||||
if (!(Test-Path "C:\projects\mitmproxy\release\installbuilder-installer.exe")) {
|
$ibSetup = "C:\projects\mitmproxy\release\installbuilder-installer.exe"
|
||||||
"Download InstallBuilder..."
|
$ibVersion = "17.4.0"
|
||||||
|
if (!(Test-Path $ibSetup)) {
|
||||||
|
echo "Download InstallBuilder..."
|
||||||
(New-Object System.Net.WebClient).DownloadFile(
|
(New-Object System.Net.WebClient).DownloadFile(
|
||||||
"https://installbuilder.bitrock.com/installbuilder-enterprise-17.1.0-windows-installer.exe",
|
"https://installbuilder.bitrock.com/installbuilder-enterprise-$ibVersion-windows-installer.exe",
|
||||||
"C:\projects\mitmproxy\release\installbuilder-installer.exe"
|
$ibSetup
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Start-Process "C:\projects\mitmproxy\release\installbuilder-installer.exe" "--mode unattended --unattendedmodeui none" -Wait
|
echo "Install InstallBuilder..."
|
||||||
& 'C:\Program Files (x86)\BitRock InstallBuilder Enterprise 17.1.0\bin\builder-cli.exe' `
|
Start-Process $ibSetup "--mode unattended --unattendedmodeui none" -Wait
|
||||||
|
echo "Run InstallBuilder..."
|
||||||
|
& "C:\Program Files (x86)\BitRock InstallBuilder Enterprise $ibVersion\bin\builder-cli.exe" `
|
||||||
build `
|
build `
|
||||||
.\release\installbuilder\mitmproxy.xml `
|
.\release\installbuilder\mitmproxy.xml `
|
||||||
windows `
|
windows `
|
||||||
--license .\release\installbuilder\license.xml `
|
--license .\release\installbuilder\license.xml `
|
||||||
--setvars project.version=$Env:VERSION `
|
--setvars project.version=$Env:VERSION `
|
||||||
--verbose
|
--verbose
|
||||||
|
echo "Installer build completed."
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy_script:
|
deploy_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user