From 5ed5d52733540c59e163f4dd2197cb7b344a25d9 Mon Sep 17 00:00:00 2001 From: Ioannis G Date: Mon, 11 May 2020 19:49:39 +0300 Subject: [PATCH] post-build script: remove leftover comment also convert indentation to spaces --- Scripts/post_build.ps1 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index d5cb947b4..2aa6a1e87 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -1,14 +1,14 @@ param( [string]$config = "Release", [string]$solution, - [string]$targetpath + [string]$targetpath ) Write-Host "Config: $config" function Build-Version { - if ([string]::IsNullOrEmpty($env:flowVersion)) { - $v = (Get-Command ${TargetPath}).FileVersionInfo.FileVersion - } else { + if ([string]::IsNullOrEmpty($env:flowVersion)) { + $v = (Get-Command ${TargetPath}).FileVersionInfo.FileVersion + } else { $v = $env:flowVersion } @@ -120,12 +120,11 @@ function Main { if(IsDotNetCoreAppSelfContainedPublishEvent) { FixPublishLastWriteDateTimeError $p - } + } Delete-Unused $p $config $o = "$p\Output\Packages" Validate-Directory $o - # making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced. Pack-Squirrel-Installer $p $v $o $isInCI = $env:APPVEYOR