Appveyor: Bundle C4Group

Users have requested that C4Group is bundled with the snapshots, and
the file itself is fairly small, so it should be fine to ship it as
well.
master
Nicolas Hake 2018-11-14 20:03:52 +01:00
parent 34d89adf47
commit f90e424f4a
1 changed files with 3 additions and 1 deletions

View File

@ -139,9 +139,10 @@ if ($env:DEPLOYMENT_URL -and $env:DEPLOYMENT_SECRET) {
GetMetadataValue('Outputs')
}
# Copy executable, Qt
# Copy executables, Qt
C:\Qt\5.11.1\msvc2017_64\bin\windeployqt.exe --no-translations --no-compiler-runtime --dir $deploy_dir $openclonk.GetPropertyValue('TargetPath')
Copy-Item $openclonk.GetPropertyValue('TargetPath') "${deploy_dir}\"
Copy-Item $c4group.GetPropertyValue('TargetPath') "${deploy_dir}\"
# Copy other DLLs openclonk depends on
function Get-Imports {
@ -150,6 +151,7 @@ if ($env:DEPLOYMENT_URL -and $env:DEPLOYMENT_SECRET) {
}
$unresolved = [System.Collections.Queue]::new()
Get-Imports $openclonk.GetPropertyValue('TargetPath') | %{ $unresolved.Enqueue($_) }
Get-Imports $c4group.GetPropertyValue('TargetPath') | %{ $unresolved.Enqueue($_) }
while ($unresolved.Count -gt 0) {
$library = $unresolved.Dequeue()
$file = Join-Path $deploy_dir $library