Skip to content

Commit

Permalink
Changing host in view model no longer needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 12, 2021
1 parent e80fe74 commit cb8b98e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Desktop.Win/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public MainWindowViewModel()

Application.Current.Exit += Application_Exit;

_configService = Services?.GetRequiredService<IConfigService>();
_cursorIconWatcher = Services?.GetRequiredService<ICursorIconWatcher>();
_configService = Services.GetRequiredService<IConfigService>();
_cursorIconWatcher = Services.GetRequiredService<ICursorIconWatcher>();
_cursorIconWatcher.OnChange += CursorIconWatcher_OnChange;
_conductor = Services.GetRequiredService<Conductor>();
_casterSocket = Services.GetRequiredService<ICasterSocket>();
Expand Down
1 change: 0 additions & 1 deletion Utilities/Publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ if ($Hostname) {
}

Replace-LineInFile -FilePath "$Root\Shared\Models\DesktopAppConfig.cs" -MatchPattern "private string _host" -ReplaceLineWith "private string _host = `"$($Hostname)`";" -MaxCount 1
Replace-LineInFile -FilePath "$Root\Agent.Installer.Win\ViewModels\MainWindowViewModel.cs" -MatchPattern "private string _serverUrl" -ReplaceLineWith "private string _serverUrl = `"$($Hostname)`";" -MaxCount 1
Replace-LineInFile -FilePath "$Root\Desktop.Win\Properties\PublishProfiles\ClickOnce-x64.pubxml" -MatchPattern "<InstallUrl>" -ReplaceLineWith " <InstallUrl>$Hostname/Content/Win-x64/ClickOnce/</InstallUrl>"
Replace-LineInFile -FilePath "$Root\Desktop.Win\Properties\PublishProfiles\ClickOnce-x86.pubxml" -MatchPattern "<InstallUrl>" -ReplaceLineWith " <InstallUrl>$Hostname/Content/Win-x86/ClickOnce/</InstallUrl>"
}
Expand Down

0 comments on commit cb8b98e

Please sign in to comment.