diff --git a/Server/Pages/Agents.cshtml b/Server/Pages/Agents.cshtml
index 45a7ebb9..2ad5bc35 100644
--- a/Server/Pages/Agents.cshtml
+++ b/Server/Pages/Agents.cshtml
@@ -30,7 +30,7 @@
Download:
- Linux Zipped
+ Linux Executable
diff --git a/Server/Startup.cs b/Server/Startup.cs
index 0f8a8a24..4d405abb 100644
--- a/Server/Startup.cs
+++ b/Server/Startup.cs
@@ -259,6 +259,7 @@ namespace Remotely.Server
app.UseStaticFiles(new StaticFileOptions()
{
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "Downloads")),
+ ServeUnknownFileTypes = true,
RequestPath = new PathString("/Downloads"),
ContentTypeProvider = provider,
DefaultContentType = "application/octet-stream"
diff --git a/Utilities/Publish.ps1 b/Utilities/Publish.ps1
index e0ce0c84..ca6041c8 100644
--- a/Utilities/Publish.ps1
+++ b/Utilities/Publish.ps1
@@ -129,12 +129,7 @@ dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runti
# Publish Linux GUI App
$PublishDir = "$Root\Desktop.Linux\bin\Release\netcoreapp3.1\linux-x64\publish\"
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime linux-x64 --configuration Release --output "$PublishDir" "$Root\Desktop.Linux\"
-# Compress Linux GUI App
-Compress-Archive -Path "$PublishDir\*" -DestinationPath "$PublishDir\Remotely_Desktop.Linux.zip" -CompressionLevel Optimal -Force
-while ((Test-Path -Path "$PublishDir\Remotely_Desktop.Linux.zip") -eq $false){
- Start-Sleep -Seconds 1
-}
-Move-Item -Path "$PublishDir\Remotely_Desktop.Linux.zip" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop.Linux.zip" -Force
+Move-Item -Path "$PublishDir\Remotely_Desktop" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop" -Force
# Build .NET Framework ScreenCaster (32-bit)
@@ -153,7 +148,7 @@ Get-ChildItem -Path "$Root\ScreenCast.Win\bin\x64\Release\" -Exclude "*.xml" | C
# Build Windows GUI App
&"$MSBuildPath" "$Root\Desktop.Win" /t:Build /p:Configuration=Release /p:Platform=AnyCPU
-Move-Item -Path "$Root\Desktop.Win\bin\Release\Remotely_Desktop.exe" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop.exe"
+Move-Item -Path "$Root\Desktop.Win\bin\Release\Remotely_Desktop.exe" -Destination "$Root\Server\wwwroot\Downloads\Remotely_Desktop.exe" -Force
if ($SignAssemblies) {
&"$Root\Utilities\signtool.exe" sign /f "$CertificatePath" /p $CertificatePassword /t http://timestamp.digicert.com "$Root\Server\wwwroot\Downloads\Remotely_Desktop.exe"
}