mirror of https://github.com/procxx/kepka.git
				
				
				
			Pack PDBs into a separate artifact (#57)
This commit is contained in:
		
							parent
							
								
									05b766a460
								
							
						
					
					
						commit
						d28745423a
					
				| 
						 | 
				
			
			@ -1,4 +0,0 @@
 | 
			
		|||
vcpkg install --triplet x64-windows openal-soft openssl opus zlib ffmpeg
 | 
			
		||||
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
 | 
			
		||||
mkdir %APPVEYOR_BUILD_FOLDER%\build
 | 
			
		||||
7z x ninja-win.zip -o%APPVEYOR_BUILD_FOLDER%\build > nul
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
$ErrorActionPreference = 'Stop'
 | 
			
		||||
 | 
			
		||||
function Pack-Files($ext, $includeExe, $targetPath, $archiveName) {
 | 
			
		||||
    New-Item $targetPath\imageformats -Type Directory -Force | Out-Null
 | 
			
		||||
    New-Item $targetPath\platforms -Type Directory -Force | Out-Null
 | 
			
		||||
 | 
			
		||||
    foreach ($name in @('Qt5Core', 'Qt5Gui', 'Qt5Network', 'Qt5Widgets')) {
 | 
			
		||||
        Copy-Item $env:QT_DIR\bin\$name.$ext $targetPath\
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Copy-Item $env:QT_DIR\plugins\imageformats\qwebp.$ext $targetPath\imageformats\
 | 
			
		||||
    Copy-Item $env:QT_DIR\plugins\imageformats\qjpeg.$ext $targetPath\imageformats\
 | 
			
		||||
    Copy-Item $env:QT_DIR\plugins\platforms\qwindows.$ext $targetPath\platforms\
 | 
			
		||||
 | 
			
		||||
    $itemsToPack = @("$targetPath\*.$ext", "$targetPath\platforms\*.$ext", "$targetPath\imageformats\*.$ext")
 | 
			
		||||
    if ($includeExe) {
 | 
			
		||||
        $itemsToPack += @("$targetPath\Telegram.exe")
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    7z a -mmt $archiveName @itemsToPack
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Push-Location "$PSScriptRoot\..\build"
 | 
			
		||||
try {
 | 
			
		||||
    Pack-Files dll $true Telegram kepka.zip
 | 
			
		||||
    Pack-Files pdb $false Telegram pdb.zip
 | 
			
		||||
} finally {
 | 
			
		||||
    Pop-Location
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -35,10 +35,11 @@ build_script:
 | 
			
		|||
  - cmd: .appveyor\build.cmd
 | 
			
		||||
 | 
			
		||||
after_build:
 | 
			
		||||
  - ps: .appveyor\after_build.cmd
 | 
			
		||||
  - ps: .appveyor\after_build.ps1
 | 
			
		||||
 | 
			
		||||
artifacts:
 | 
			
		||||
  - path: build\kepka.zip
 | 
			
		||||
  - path: build\pdb.zip
 | 
			
		||||
 | 
			
		||||
notifications:
 | 
			
		||||
  - provider: GitHubPullRequest
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue