Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added armake 0.5.1 * moved build script into separate ps file * Changed image to stable vs17 * Win64 build fix
- Loading branch information
Showing
4 changed files
with
66 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* text eol=crlf | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg binary | ||
*.exe filter=lfs diff=lfs merge=lfs -text |
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
Git LFS file not shown
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,46 @@ | ||
# Create host addon folders and copy items | ||
New-Item $env:APPVEYOR_BUILD_FOLDER\artifacts\@intercept\addons -type directory | Out-Null | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win32\intercept\RelWithDebInfo\intercept.dll $env:APPVEYOR_BUILD_FOLDER\artifacts\@intercept | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win64\intercept\RelWithDebInfo\intercept_x64.dll $env:APPVEYOR_BUILD_FOLDER\artifacts\@intercept | ||
|
||
# Create dev folders and copy items | ||
New-Item $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\client\include -type directory | Out-Null | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\src\client\headers\* $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\client\include -recurse | ||
|
||
New-Item $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\client\lib -type directory | Out-Null | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win32\intercept_client\RelWithDebInfo\intercept_client.lib $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\client\lib | ||
|
||
New-Item $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\client\lib64 -type directory | Out-Null | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win64\intercept_client\RelWithDebInfo\intercept_client.lib $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\client\lib64 | ||
|
||
New-Item $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept\addons -type directory | Out-Null | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win32\intercept\RelWithDebInfo\intercept.dll $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win32\intercept\RelWithDebInfo\intercept.pdb $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win64\intercept\RelWithDebInfo\intercept_x64.dll $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\build\win64\intercept\RelWithDebInfo\intercept_x64.pdb $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept | ||
|
||
# Pack host addon | ||
Write-Host "Packing intercept_core.pbo" | ||
Start-Process -FilePath "$env:APPVEYOR_BUILD_FOLDER\tools\armake_w64.exe" -ArgumentList "build `"$env:APPVEYOR_BUILD_FOLDER\rv\addons\core`" `"$env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept\addons\intercept_core.pbo`"" -Wait | ||
|
||
# Copy host addon to host addon folder | ||
Copy-Item $env:APPVEYOR_BUILD_FOLDER\artifacts\intercept\host\@intercept\addons\intercept_core.pbo $env:APPVEYOR_BUILD_FOLDER\artifacts\@intercept\addons | ||
|
||
# Define zip extension when commit tag is present | ||
$zipExtension = "" | ||
if(![string]::IsNullOrEmpty($env:APPVEYOR_REPO_TAG_NAME)) { | ||
Write-Host "Tag name is present: $env:APPVEYOR_REPO_TAG_NAME" | ||
$zipExtension = "_$env:APPVEYOR_REPO_TAG_NAME" | ||
} else { | ||
Write-Host "Tag name is not present, not including it into artifacts" | ||
} | ||
|
||
# Zip host artifact and publish it | ||
7z a "$env:APPVEYOR_BUILD_FOLDER\artifacts\intercept_host$zipExtension.zip" "$env:APPVEYOR_BUILD_FOLDER\artifacts\@intercept" | Out-Null | ||
Write-Host "Zipped host files" | ||
Push-AppveyorArtifact "$env:APPVEYOR_BUILD_FOLDER\artifacts\intercept_host$zipExtension.zip" | ||
|
||
# Zip dev artifact and publish it | ||
7z a "$env:APPVEYOR_BUILD_FOLDER\artifacts\intercept_dev$zipExtension.zip" "$env:APPVEYOR_BUILD_FOLDER\artifacts\intercept" | Out-Null | ||
Write-Host "Zipped dev files" | ||
Push-AppveyorArtifact "$env:APPVEYOR_BUILD_FOLDER\artifacts\intercept_dev$zipExtension.zip" |