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

maybe this time

上级 219f948c
No related branches found
No related tags found
无相关合并请求
......@@ -22,9 +22,8 @@ Write-Output "Version is $($version)"
# Fix for AppVeyor
if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) {
Write-Output "RUNNING VIA APPVEYOR!"
$AppVeyorDir = $Env:APPVEYOR_BUILD_FOLDER
$path = "$AppVeyorDir\Release"
$path = "$($AppVeyorDir)\Release"
If(!(test-path $path))
{
New-Item -ItemType Directory -Force -Path $path | Out-Null
......@@ -59,7 +58,7 @@ Write-Output ""
if ($ConfigurationName -eq "Release Portable") {
Write-Output "Packaging Release Portable ZIP"
$PortableZipDst="$($SolutionDir)\Release\mRemoteNG-Portable-$($version).zip"
$outputZipPath="$($SolutionDir)\Release\mRemoteNG-Portable-$($version).zip"
# Fix for AppVeyor
if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) {
......@@ -70,8 +69,8 @@ if ($ConfigurationName -eq "Release Portable") {
$FileExclude = @("*.pdb")
$Source = Get-ChildItem -Recurse -Path $TargetDir -Exclude $FileExclude
Write-Output "Creating portable ZIP file $($PortableZipDst)"
Compress-Archive $Source $PortableZipDst -Force
Write-Output "Creating portable ZIP file $($outputZipPath)"
Compress-Archive $Source $outputZipPath -Force
}
Write-Output ""
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册