Update windows-publish.ps1

This commit is contained in:
xiaoyifang 2022-02-11 15:58:13 +08:00 committed by GitHub
parent b382a02ab0
commit d788ab9338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ function Main() {
New-Item -ItemType Directory $archiveName New-Item -ItemType Directory $archiveName
New-Item -ItemType Directory $archiveName\locale New-Item -ItemType Directory $archiveName\locale
New-Item -ItemType Directory $archiveName\opencc
# 拷贝exe # 拷贝exe
Copy-Item release\$targetName $archiveName\ Copy-Item release\$targetName $archiveName\
Write-Host "copy item finished..." Write-Host "copy item finished..."
@ -43,6 +44,8 @@ function Main() {
Write-Host "copy redist dll..." Write-Host "copy redist dll..."
Copy-Item "LICENSE.txt" $archiveName\ Copy-Item "LICENSE.txt" $archiveName\
Write-Host "copy license.." Write-Host "copy license.."
Copy-Item "opencc\*" $archiveName\opencc\
Write-Host "opencc config files.."
# 拷贝WinSDK dll # 拷贝WinSDK dll
$sdkDll="{0}Redist\{1}ucrt\DLLs\{2}\*.dll" -f $env:winSdkDir.Trim(),$env:winSdkVer.Trim(),$env:msvcArch $sdkDll="{0}Redist\{1}ucrt\DLLs\{2}\*.dll" -f $env:winSdkDir.Trim(),$env:winSdkVer.Trim(),$env:msvcArch
Write-Host "copy sdk dll$($sdkDll)" Write-Host "copy sdk dll$($sdkDll)"