2024-09-23 01:33:17 +00:00
|
|
|
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
2024-08-10 13:28:10 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Config.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
|
|
|
|
2024-08-22 23:43:26 +00:00
|
|
|
& {
|
2024-08-10 13:28:10 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
2024-08-22 23:43:26 +00:00
|
|
|
$base = "$PSScriptRoot/../../../Common/Software/git/Manage.ps1";
|
2024-08-10 13:28:10 +00:00
|
|
|
|
2024-09-30 03:00:20 +00:00
|
|
|
Start-SoftwareInstaller @args `
|
2024-08-10 13:28:10 +00:00
|
|
|
-Installer {
|
|
|
|
$params = "/WindowsTerminalProfile";
|
2024-09-22 15:50:05 +00:00
|
|
|
$defaultBranch = Get-OSConfig "git.defaultBranch";
|
2024-08-10 13:28:10 +00:00
|
|
|
|
|
|
|
if ($defaultBranch) {
|
|
|
|
$params += " /DefaultBranchName:`"$defaultBranch`"";
|
|
|
|
}
|
|
|
|
|
|
|
|
Install-ChocoPackage git -ArgumentList "--params",$params;
|
|
|
|
} `
|
|
|
|
-Configurator {
|
2024-09-30 03:00:20 +00:00
|
|
|
& $base ([InstallerAction]::Configure) @args;
|
2024-08-22 23:43:26 +00:00
|
|
|
} `
|
|
|
|
-UserConfigurator {
|
2024-09-30 03:00:20 +00:00
|
|
|
& $base ([InstallerAction]::ConfigureUser) @args;
|
2024-08-22 23:43:26 +00:00
|
|
|
};
|
2024-09-30 03:00:20 +00:00
|
|
|
} @args;
|