From fda1a3b429541ea111d40c09862a183777eeae04 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Sat, 28 Sep 2019 11:55:27 -0700 Subject: [PATCH] Update publish script and readme. --- .gitignore | 2 +- README.md | 5 ++--- Utilities/Publish.ps1 | 5 +++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index b78f379c..3109e7e1 100644 --- a/.gitignore +++ b/.gitignore @@ -268,4 +268,4 @@ __pycache__/ /Server/ffmpeg.exe /Server/Properties/PublishProfiles *.msi -/Server/wwwroot/Downloads/WinDesktop +/Server/wwwroot/Downloads/WinDesktop/* \ No newline at end of file diff --git a/README.md b/README.md index 2e16b452..441575a3 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,9 @@ The following steps will configure your Windows 10 machine for building the Remo * Link: https://marketplace.visualstudio.com/items?itemName=visualstudioclient.MicrosoftVisualStudio2017InstallerProjects * Clone the git repository and open the solution in Visual Studio. * Run Publish.ps1 in the Utilities folder. - * Example: powershell -f [path]\Publish.ps1 -outdir C:\inetpub\remotely -rid win10-x86 + * Example: powershell -f [path]\Publish.ps1 -outdir C:\inetpub\remotely -rid win10-x86 -hostname https://mysite.mydomain.com * The output folder will now contain the server, with the clients in the Downloads folder. - * By default, the screen-sharing desktop app prompts for a host URL and can be changed thereafter. - * To hard-code an initial URL, set the Host value in /Desktop.Win/Services/Config.cs to the server's URL (same for the Desktop.Unix project). + * The above hostname will be hardcoded in the screen-sharing desktop apps, but can be changed via the options menu. ## Hosting a Server (Windows) * Create a site in IIS that will run Remotely. diff --git a/Utilities/Publish.ps1 b/Utilities/Publish.ps1 index 215cfaae..534d6105 100644 --- a/Utilities/Publish.ps1 +++ b/Utilities/Publish.ps1 @@ -138,11 +138,12 @@ Get-ChildItem -Path "$Root\ScreenCast.Win\bin\x64\Release\" -Exclude "*.xml" | C # Publish Windows GUI App -$PublishDir = "$Root\Desktop.Win\publish" +$PublishDir = "$Root\Desktop.Win\bin\Release\app.publish" &"$MSBuildPath" "$Root\Desktop.Win" /t:Publish /p:Configuration=Release /p:Platform=AnyCPU # Copy to download folder. +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 -Rename-Item -Path "$Root\Server\wwwroot\Downloads\WinDesktop\setup.exe" -NewName "Remotely_Setup.exe" +Rename-Item -Path "$Root\Server\wwwroot\Downloads\WinDesktop\setup.exe" -NewName "Remotely_Setup.exe" -Force # Compress Core clients.