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 qmake
nmake nmake
# 记录build环境给后续step # 记录build环境给后续step
$winSdkDir = ${env:WindowsSdkDir} set winSdkDir=%WindowsSdkDir%
$winSdkVer = ${env:WindowsSdkVersion} set winSdkVer=%WindowsSdkVersion%
$vcToolsInstallDir = ${env:VCToolsInstallDir} set vcToolsInstallDir=%VCToolsInstallDir%
$vcToolsRedistDir = ${env:VCToolsRedistDir} set vcToolsRedistDir=%VCToolsRedistDir%
echo "::set-output name=winSdkDir::$winSdkDir" echo "::set-output name=winSdkDir::$winSdkDir"
echo "::set-output name=winSdkVer::$winSdkVer" echo "::set-output name=winSdkVer::$winSdkVer"
echo "::set-output name=vcToolsInstallDir::$vcToolsInstallDir" echo "::set-output name=vcToolsInstallDir::$vcToolsInstallDir"

View File

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