-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
4,676 additions
and
722 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
Import-Module -Name ".\.appveyor_runapp.psm1" | ||
|
||
Write-Host "=============== Start the EventGhost build ===============" | ||
If ( | ||
($Env:APPVEYOR_REPO_TAG.tolower() -eq "true") -and | ||
($Env:APPVEYOR_REPO_TAG_NAME.tolower().startswith("deploy")) | ||
) { | ||
# to do a release, create a tag in the form "Deploy_VERSION" | ||
# VERSION must be a valid version string (without leading "v") | ||
# this tag will be deleted and a new release "vVERSION" created. | ||
|
||
git checkout -q master | ||
$release = ' --release --version "' + $Env:APPVEYOR_REPO_TAG_NAME.split("_", 2)[1] + '"' | ||
if ($Env:SFTP_URL) { | ||
$url = ' --docs --url "$Env:SFTP_URL"' | ||
} else { | ||
$url = "" | ||
} | ||
|
||
Write-Host " --- Building deploy" | ||
|
||
} else { | ||
Write-Host " --- Building WIP" | ||
$release = "" | ||
$url = "" | ||
} | ||
|
||
Invoke-App "$Env:PYTHON\python.exe" "$Env:APPVEYOR_BUILD_FOLDER\_build\Build.py --build --package --verbose$release$url" | ||
|
||
$Env:SetupExe = Get-ChildItem "$Env:APPVEYOR_BUILD_FOLDER\_build\output\*" -File -include "*Setup_x$Env:BUILDARCH.exe" -name | ||
|
||
$ModuleOutputFolder = $Env:APPVEYOR_BUILD_FOLDER + "\_build\output\ModuleOutput_x$Env:BUILDARCH" | ||
Start-Process 7z -ArgumentList "a", "-bsp1", "-bb3", "$ModuleOutputFolder.zip", "-r", "$ModuleOutputFolder\*.*" -NoNewWindow -Wait | ||
|
||
if (-Not ($Env:SetupExe)) { | ||
# Get-ChildItem "$ModuleOutputFolder.zip" | % { Push-AppveyorArtifact $_.Name -FileName $_.Name } | ||
# Get-ChildItem "_build\output\Build_x$Env:BUILDARCH.log" | % { Push-AppveyorArtifact $_.Name -FileName $_.Name } | ||
$host.SetShouldExit(1) | ||
} | ||
elseif (($SetupExe) -and (-Not ($SetupExe -like '*_x64'))) { | ||
# update the appveyor build version to be the same as the EventGhost version | ||
|
||
$Start = $Env:SetupExe.IndexOf("_") | ||
$Length = $Env:SetupExe.LastIndexOf("_") - $Start | ||
|
||
$BuildVersion = $Env:SetupExe.Substring($Start + 1, $Length - 1) | ||
$Length = $BuildVersion.LastIndexOf("_") | ||
$BuildVersion = $BuildVersion.Substring(0, $Length - 1) | ||
|
||
Update-AppveyorBuild -Version "$BuildVersion" | ||
} | ||
|
||
|
Oops, something went wrong.