2024-08-23 23:16:56 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
|
|
|
|
|
2024-09-30 03:00:20 +00:00
|
|
|
Start-SoftwareInstaller @args `
|
2024-08-23 23:16:56 +00:00
|
|
|
-UserConfigurator {
|
|
|
|
param(
|
|
|
|
$Arguments
|
|
|
|
)
|
|
|
|
|
|
|
|
$bins = @("codium", "codium-insiders", "code", "code-insiders");
|
|
|
|
$extensions = @("zokugun.sync-settings", "zokugun.vsix-manager");
|
|
|
|
$user = $Arguments.Name;
|
|
|
|
|
|
|
|
foreach ($bin in $bins) {
|
|
|
|
if (Test-Command "$bin") {
|
|
|
|
foreach ($extension in $extensions) {
|
|
|
|
sudo -u "$user" "$bin" --install-extension "$extension";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|