Skip to content
代码片段 群组 项目
提交 954c6671 编辑于 作者: Faryan Rezagholi's avatar Faryan Rezagholi
浏览文件

cleanup

上级 33c738df
未找到相关分支
未找到相关标签
无相关合并请求
......@@ -31,10 +31,10 @@ if ($ConfigurationName -match "Release") {
}
$outputZipPath="$($SolutionDir)Release\$zipFilePrefix-$($version).zip"
$debugFile = Join-Path -Path $TargetDir -ChildPath "mRemoteNG.pdb"
Write-Output "Creating debug symbols ZIP file $($outputZipPath)"
Remove-Item -Force $outputZipPath -ErrorAction SilentlyContinue
Compress-Archive (Join-Path -Path $TargetDir -ChildPath "mRemoteNG.pdb") $outputZipPath -Force
Compress-Archive $debugFile $outputZipPath -Force
}
Write-Output ""
......@@ -45,13 +45,12 @@ if ($ConfigurationName -eq "Release Portable") {
$PortableZipDst="$($SolutionDir)\Release\mRemoteNG-Portable-$($version).zip"
# Excluse debug symbols
$exclude = @("*.pdb")
# get files to compress using exclusion filer
#$files = Get-ChildItem -Recurse -Path $TargetDir -Exclude $exclude
# Excluse debug symbols from folder
$FileExclude = @("*.pdb")
$Source = Get-ChildItem -Recurse -Path $TargetDir -Exclude $FileExclude
Write-Output "Creating portable ZIP file $($PortableZipDst)"
Compress-Archive (Get-ChildItem -Recurse -Path $TargetDir -Exclude $exclude) $PortableZipDst -Force
Compress-Archive $Source $PortableZipDst -Force
}
Write-Output ""
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
想要评论请 注册