diff --git a/Tools/postbuild_mremotev1.ps1 b/Tools/postbuild_mremotev1.ps1 index 5fdf50646..3e1d9d098 100644 --- a/Tools/postbuild_mremotev1.ps1 +++ b/Tools/postbuild_mremotev1.ps1 @@ -33,6 +33,7 @@ Format-Table -AutoSize -Wrap -InputObject @{ "TargetDir" = $TargetDir "TargetFileName" = $TargetFileName "ConfigurationName" = $ConfigurationName + "ExcludeFromSigning" = $ExcludeFromSigning } diff --git a/Tools/sign_binaries.ps1 b/Tools/sign_binaries.ps1 index ac2ec1123..36870f467 100644 --- a/Tools/sign_binaries.ps1 +++ b/Tools/sign_binaries.ps1 @@ -59,8 +59,9 @@ Write-Output "Getting files from path: $TargetDir" $signableFiles = Get-ChildItem -Path $TargetDir -Recurse | ?{$_.Extension -match "dll|exe|msi"} | ?{$Exclude -notcontains $_.Name} $excluded_files = Get-ChildItem -Path $TargetDir -Recurse | ?{$_.Extension -match "dll|exe|msi"} | ?{$Exclude -contains $_.Name} -Write-Output "The following files were excluded from signing due to being on the exclusion list:" -$excluded_files | %{Write-Output $_.FullName} +$excluded_files | ForEach-Object ` + -Begin { Write-Output "The following files were excluded from signing due to being on the exclusion list:" } ` + -Process { Write-Output "-- $($_.FullName)" } Write-Output "Signable files count: $($signableFiles.Count)" diff --git a/mRemoteV1/mRemoteV1.csproj b/mRemoteV1/mRemoteV1.csproj index 86c0fac4a..3afd351c4 100644 --- a/mRemoteV1/mRemoteV1.csproj +++ b/mRemoteV1/mRemoteV1.csproj @@ -1259,7 +1259,7 @@ set certPath=$(CertPath) set certPassword=$(CertPassword) :: Call the post build powershell script -powershell.exe -ExecutionPolicy Bypass -File "%25psScriptsDir%25\postbuild_mremotev1.ps1" -SolutionDir "%25solutionDir%25" -TargetDir "%25targetDir%25" -TargetFileName "mRemoteNG.exe" -ConfigurationName "%25buildenv%25" -CertificatePath "%25certPath%25" -CertificatePassword "%25certPassword%25" +powershell.exe -ExecutionPolicy Bypass -File "%25psScriptsDir%25\postbuild_mremotev1.ps1" -SolutionDir "%25solutionDir%25" -TargetDir "%25targetDir%25" -TargetFileName "mRemoteNG.exe" -ConfigurationName "%25buildenv%25" -CertificatePath "%25certPath%25" -CertificatePassword "%25certPassword%25" -ExcludeFromSigning @("PuTTYNG.exe") true