diff --git a/Desktop.Win/Desktop.Win.csproj b/Desktop.Win/Desktop.Win.csproj
index 3283ac32..d8aeb2de 100644
--- a/Desktop.Win/Desktop.Win.csproj
+++ b/Desktop.Win/Desktop.Win.csproj
@@ -29,13 +29,14 @@
false
false
https://tryremotely.lucency.co/Downloads/WinDesktop/
+ https://tryremotely.lucency.co/Downloads/WinDesktop/
https://lucency.co/Contact
https://lucency.co/Contact
Remotely Desktop
Translucency Software
Remotely
0
- 1.0.0.%2a
+ 1.0.0.0
false
true
true
diff --git a/Server/CurrentVersion.txt b/Server/CurrentVersion.txt
index df718abd..981e9d71 100644
--- a/Server/CurrentVersion.txt
+++ b/Server/CurrentVersion.txt
@@ -1 +1 @@
-2019.09.28.2040
+2019.09.28.2306
diff --git a/Utilities/Publish.ps1 b/Utilities/Publish.ps1
index 1fd080a7..1e8014cd 100644
--- a/Utilities/Publish.ps1
+++ b/Utilities/Publish.ps1
@@ -78,6 +78,7 @@ Set-Content -Path "$Root\Server\CurrentVersion.txt" -Value $CurrentVersion.Trim(
# Update hostname.
if ($Hostname.Length -gt 0) {
Replace-LineInFile -FilePath "$Root\Desktop.Win\Desktop.Win.csproj" -MatchPattern "" -ReplaceLineWith "$($Hostname)/Downloads/WinDesktop/" -MaxCount 1
+ Replace-LineInFile -FilePath "$Root\Desktop.Win\Desktop.Win.csproj" -MatchPattern "" -ReplaceLineWith "$($Hostname)/Downloads/WinDesktop/" -MaxCount 1
Replace-LineInFile -FilePath "$Root\Desktop.Win\Services\Config.cs" -MatchPattern "public string Host " -ReplaceLineWith "public string Host { get; set; } = `"$($Hostname)`";" -MaxCount 1
Replace-LineInFile -FilePath "$Root\Desktop.Unix\Services\Config.cs" -MatchPattern "public string Host " -ReplaceLineWith "public string Host { get; set; } = `"$($Hostname)`";" -MaxCount 1
}
@@ -138,13 +139,8 @@ Get-ChildItem -Path "$Root\ScreenCast.Win\bin\x64\Release\" -Exclude "*.xml" | C
# Publish Windows GUI App
-$PublishDir = "$Root\Desktop.Win\bin\Release\app.publish"
-&"$MSBuildPath" "$Root\Desktop.Win" /t:Publish /p:Configuration=Release /p:Platform=AnyCPU
-# Copy to download folder.
-if (Test-Path -Path "$Root\Server\wwwroot\Downloads\WinDesktop") {
- Get-ChildItem -Path "$Root\Server\wwwroot\Downloads\WinDesktop" | Remove-Item -Force -Recurse
-}
-Get-ChildItem -Path "$PublishDir" | Move-Item -Destination "$Root\Server\wwwroot\Downloads\WinDesktop" -Force
+$PublishDir = "$Root\Desktop.Win\publish\"
+&"$MSBuildPath" "$Root\Desktop.Win" /t:Publish /p:Configuration=Release /p:Platform=AnyCPU /p:PublishDir="$Root\Server\wwwroot\Downloads\WinDesktop\"
Rename-Item -Path "$Root\Server\wwwroot\Downloads\WinDesktop\setup.exe" -NewName "Remotely_Setup.exe" -Force