Skip to content

Commit e776434

Browse files
committed
Add NDM and Qt installer types
Update Get-InstallerType.ps1 to recognize new installer tokens 'ndm', 'qt6', and 'qt5', mapping them to 'NonDarkMode', 'Qt6', and 'Qt5'. Also normalize switch-case formatting for improved readability; default behavior remains unchanged.
1 parent faffc33 commit e776434

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

Evergreen/Private/Get-InstallerType.ps1

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ function Get-InstallerType {
77
)
88

99
switch -Regex ($String.ToLower()) {
10-
"min" { $Type = "Minimal"; break }
11-
"user" { $Type = "User"; break }
12-
"portable" { $Type = "Portable"; break }
10+
"min" { $Type = "Minimal"; break }
11+
"user" { $Type = "User"; break }
12+
"portable" { $Type = "Portable"; break }
1313
"no-installer" { $Type = "Portable"; break }
14-
"debug" { $Type = "Debug"; break }
15-
"airgap" { $Type = "Airgap"; break }
16-
"winmsi" { $Type = "MSI"; break }
14+
"debug" { $Type = "Debug"; break }
15+
"airgap" { $Type = "Airgap"; break }
16+
"winmsi" { $Type = "MSI"; break }
17+
"ndm" { $Type = "NonDarkMode"; break }
18+
"qt6" { $Type = "Qt6"; break }
19+
"qt5" { $Type = "Qt5"; break }
1720
default {
1821
Write-Verbose -Message "$($MyInvocation.MyCommand): Installer type not found in $String, defaulting to 'Default'."
1922
$Type = "Default"

0 commit comments

Comments
 (0)