diff --git a/Tools/appveyor_after_build.ps1 b/Tools/appveyor_after_build.ps1 deleted file mode 100644 index 3eb55e6d6..000000000 --- a/Tools/appveyor_after_build.ps1 +++ /dev/null @@ -1,73 +0,0 @@ -if([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) { - Write-Output "NOT running via Appveyor - Exiting" - Exit -} - -$appvDir = $Env:APPVEYOR_BUILD_FOLDER - -Write-Output "Appveyor Build Dir: '$($appvDir)'" -$ConfigurationName = $Env:CONFIGURATION.Trim() -Write-Output "Config Name (tirmmed): '$($ConfigurationName)'" - - -$SIGCHECK="Tools\exes\sigcheck.exe" -$SEVENZIP="Tools\7zip\7za.exe" - -if ($ConfigurationName -eq "Release Portable") { - Write-Output "Packaging Release Portable ZIP" - - $version = & $SIGCHECK /accepteula -q -n "mRemoteNG\bin\$($ConfigurationName)\mRemoteNG.exe" - - Write-Output "Version is $($version)" - - $PortableZip="Release\mRemoteNG-Portable-$($version).zip" - - Remove-Item -Recurse "mRemoteNG\bin\package" -ErrorAction SilentlyContinue | Out-Null - New-Item "mRemoteNG\bin\package" -ItemType "directory" | Out-Null - - Copy-Item "mRemoteNG\Resources\PuTTYNG.exe" -Destination "mRemoteNG\bin\package" - - Copy-Item "mRemoteNG\bin\$ConfigurationName\*" -Destination "mRemoteNG\bin\package" -Recurse -Force -Exclude *.pdb - Copy-Item "*.txt" -Destination "mRemoteNG\bin\package" - - Write-Output "Creating portable ZIP file $($PortableZip)" - Remove-Item -Force $PortableZip -ErrorAction SilentlyContinue - & $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $PortableZip ".\mRemoteNG\bin\package\*.*" -} -else { - Write-Output "We will not zip anything - this isnt a portable release build." -} - -Write-Output "" -Write-Output "" - -if ($ConfigurationName -match "Release" -And $ConfigurationName -ne "Release Installer") { - Write-Output "Packaging debug symbols" - - $version = & $SIGCHECK /accepteula -q -n "mRemoteNG\bin\$($ConfigurationName)\mRemoteNG.exe" - - Write-Output "Version is $($version)" - - if ($ConfigurationName -match "Portable") { - $zipFilePrefix = "mRemoteNG-Portable-symbols" - } else { - $zipFilePrefix = "mRemoteNG-symbols" - } - - $outputZipPath="Release\$zipFilePrefix-$($version).zip" - - Write-Output "Creating debug symbols ZIP file $($outputZipPath)" - Remove-Item -Force $outputZipPath -ErrorAction SilentlyContinue - $SymPath = (Join-Path -Path mRemoteNG\bin\$($ConfigurationName) -ChildPath "*.pdb") - if(Test-Path "$SymPath") { - & $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $outputZipPath "$SymPath" - } else { - Write-Output "No Debugging Symbols Found..." - } - -} -else { - Write-Output "We will not package debug symbols for this configuration $($ConfigurationName)" -} - -Write-Output "" \ No newline at end of file diff --git a/Tools/appveyor_publish_build.ps1 b/Tools/appveyor_publish_build.ps1 deleted file mode 100644 index 3613bac1f..000000000 --- a/Tools/appveyor_publish_build.ps1 +++ /dev/null @@ -1,83 +0,0 @@ -if([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) { - Write-Output "NOT running via Appveyor - Exiting" - Throw "NOT running via Appveyor - Exiting" -} - -$appvDir = $Env:APPVEYOR_BUILD_FOLDER - -$SIGCHECK="Tools\exes\sigcheck.exe" -$SEVENZIP="Tools\7zip\7za.exe" - -Write-Output "Appveyor Build Dir: '$($appvDir)'" - -Write-Output "Decrypt Cert" -& appveyor-tools\secure-file -decrypt "$($Env:cert_path).enc" -secret "$Env:cert_decrypt_pwd" - -if(-Not (Test-Path $Env:cert_path)) { - Write-Output "decrypt cert does not exist..." - Throw "Could not decrypt cert" -} - -Write-Output "Restoring NuGets" -& nuget restore - - -Write-Output "Build Release Installer" -& msbuild "$($appvDir)\mRemoteNG.sln" /nologo /t:Clean,Build /p:Configuration="Release Installer" /p:Platform=x86 /p:CertPath="$($Env:cert_path)" /p:CertPassword="$Env:cert_pwd" /m /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - -Write-Output "Packaging debug symbols" - -$version = & $SIGCHECK /accepteula -q -n "mRemoteNG\bin\Release\mRemoteNG.exe" - -Write-Output "Version is $($version)" - -$zipFilePrefix = "mRemoteNG-symbols" - - -$outputZipPath="Release\$zipFilePrefix-$($version).zip" - -Write-Output "Creating debug symbols ZIP file $($outputZipPath)" -Remove-Item -Force $outputZipPath -ErrorAction SilentlyContinue -$SymPath = (Join-Path -Path "mRemoteNG\bin\Release" -ChildPath "*.pdb") -if(Test-Path "$SymPath") { - & $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $outputZipPath "$SymPath" -} else { - Write-Output "No Debugging Symbols Found..." -} - - -Write-Output "Build Release Portable" -& msbuild "$($appvDir)\mRemoteNG.sln" /nologo /t:Clean,Build /p:Configuration="Release Portable" /p:Platform=x86 /p:CertPath="$($Env:cert_path)" /p:CertPassword="$Env:cert_pwd" /m /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - - -Write-Output "Packaging Release Portable ZIP" - -$version = & $SIGCHECK /accepteula -q -n "mRemoteNG\bin\Release Portable\mRemoteNG.exe" - -Write-Output "Version is $($version)" - -$zipFilePrefix = "mRemoteNG-Portable-symbols" -$outputZipPath="Release\$zipFilePrefix-$($version).zip" - -Write-Output "Creating debug symbols ZIP file $($outputZipPath)" -Remove-Item -Force $outputZipPath -ErrorAction SilentlyContinue -$SymPath = "mRemoteNG\bin\Release Portable\*.pdb" -if(Test-Path "$SymPath") { - & $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $outputZipPath "$SymPath" -} else { - Write-Output "No Debugging Symbols Found..." -} - -$PortableZip="Release\mRemoteNG-Portable-$($version).zip" - -Remove-Item -Recurse "mRemoteNG\bin\package" -ErrorAction SilentlyContinue | Out-Null -New-Item "mRemoteNG\bin\package" -ItemType "directory" | Out-Null - -Copy-Item "mRemoteNG\Resources\PuTTYNG.exe" -Destination "mRemoteNG\bin\package" - -Copy-Item "mRemoteNG\bin\Release Portable\*" -Destination "mRemoteNG\bin\package" -Recurse -Force -Copy-Item "*.txt" -Destination "mRemoteNG\bin\package" - -Write-Output "Creating portable ZIP file $($PortableZip)" -Remove-Item -Force $PortableZip -ErrorAction SilentlyContinue -& $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $PortableZip ".\mRemoteNG\bin\package\*.*"