diff --git a/Utilities/Publish.ps1 b/Utilities/Publish.ps1
index 0273e45d..d27feb34 100644
--- a/Utilities/Publish.ps1
+++ b/Utilities/Publish.ps1
@@ -112,10 +112,10 @@ Move-Item -Path "$PublishDir\Remotely-Linux.zip" -Destination "$Root\Remotely_Se
# Copy desktop app to Downloads folder.
if ((Test-Path -Path ".\Remotely_Desktop.Win\bin\Release\Remotely_Desktop.exe") -eq $true) {
- Copy-Item -Path ".\Remotely_Desktop.Win\bin\Release\Remotely_Desktop.exe" -Destination ".\Remotely_Server\wwwroot\Downloads\Remotely_Desktop.exe" -Force
+ Compress-Archive -Path ".\Remotely_Desktop.Win\bin\Release\Remotely_Desktop.exe" -DestinationPath ".\Remotely_Server\wwwroot\Downloads\Remotely_Desktop.zip" -Force
}
elseif ((Test-Path -Path ".\Remotely_Desktop.Win\bin\Debug\Remotely_Desktop.exe") -eq $true) {
- Copy-Item -Path ".\Remotely_Desktop.Win\bin\Debug\Remotely_Desktop.exe" -Destination ".\Remotely_Server\wwwroot\Downloads\Remotely_Desktop.exe" -Force
+ Compress-Archive -Path ".\Remotely_Desktop.Win\bin\Debug\Remotely_Desktop.exe" -Destination ".\Remotely_Server\wwwroot\Downloads\Remotely_Desktop.zip" -Force
}
if ($RID.Length -gt 0 -and $OutDir.Length -gt 0) {