Update publish script and readme.

This commit is contained in:
Jared Goodwin 2019-09-28 11:55:27 -07:00
parent df8852fa33
commit fda1a3b429
3 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -268,4 +268,4 @@ __pycache__/
/Server/ffmpeg.exe
/Server/Properties/PublishProfiles
*.msi
/Server/wwwroot/Downloads/WinDesktop
/Server/wwwroot/Downloads/WinDesktop/*

View File

@ -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.

View File

@ -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.