From bfad7f12282d3e247cfad19923d6e37c74016ec8 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 21 Mar 2024 16:07:29 +0100 Subject: [PATCH] Automatically determine the entrypoint during windows install --- scripts/Windows/OS/Install.ps1 | 1 - scripts/Windows/Scripts/Context.ps1 | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 85784462..a95f5a07 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -8,7 +8,6 @@ function Invoke-WindowsInstallation([Context] $context) { - $context.EntryPoint = Get-Entrypoint; $configPath = "$PSScriptRoot/../Config"; $softwarePath = "$PSScriptRoot/../Software"; diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 9056e303..f950c19d 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -11,6 +11,10 @@ class Context { [string]$RunOnceName = "PortValhalla"; [string]$StagePropertyName = "Stage"; + Context() { + $this.EntryPoint = Get-Entrypoint; + } + [string] ProjectRoot() { return Resolve-Path (Join-Path $PSScriptRoot ".." ".." ".."); }