1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

windows update flow

This commit is contained in:
jared 2020-12-29 23:56:35 +08:00
parent 3b40c39c5d
commit d193c1d88f
2 changed files with 6 additions and 4 deletions

View File

@ -87,10 +87,10 @@ jobs:
qmake
nmake
# 记录build环境给后续step
$winSdkDir = ${env:WindowsSdkDir}
$winSdkVer = ${env:WindowsSdkVersion}
$vcToolsInstallDir = ${env:VCToolsInstallDir}
$vcToolsRedistDir = ${env:VCToolsRedistDir}
set winSdkDir=%WindowsSdkDir%
set winSdkVer=%WindowsSdkVersion%
set vcToolsInstallDir=%VCToolsInstallDir%
set vcToolsRedistDir=%VCToolsRedistDir%
echo "::set-output name=winSdkDir::$winSdkDir"
echo "::set-output name=winSdkVer::$winSdkVer"
echo "::set-output name=vcToolsInstallDir::$vcToolsInstallDir"

View File

@ -27,7 +27,9 @@ function Main() {
# 删除不必要的文件
$excludeList = @("*.qmlc", "*.ilk", "*.exp", "*.lib", "*.pdb")
Remove-Item -Path $archiveName -Include $excludeList -Recurse -Force
# 拷贝vcRedist dll
Copy-Item "$env:vcToolsRedistDir\onecore\$env:msvcArch\*.CRT\*.dll" $archiveName\
# 拷贝WinSDK dll
Copy-Item "$env:winSdkDir\Redist\${env:winSdkVer}ucrt\DLLs\$env:msvcArch\*.dll" $archiveName\
# 打包zip
Compress-Archive -Path $archiveName $archiveName'.zip'