PortValhalla/scripts/Windows/Config/aliae/Install.ps1

21 lines
620 B
PowerShell
Raw Normal View History

2024-03-20 15:00:44 +00:00
#!/bin/pwsh
param($context);
. "$PSScriptRoot/../../Scripts/Context.ps1";
[Context] $context = $context;
$script = New-TemporaryFile;
$script = Rename-Item $script "$($script.Name).sh" -PassThru;
Write-Information "Preparing setup script";
Set-Content $script (
[string]::Join(
"`n",
@(
"SKIP_POWERSHELL=1 bash `"$PSScriptRoot/../../../Common/Config/aliae/install.sh`"",
"rm ~/.bashrc")));
$context.AddPowerShellProfileStatement("# aliae`naliae init pwsh | Invoke-Expression");
Write-Information "Running prepared script";
Start-Process -Wait $script;
Remove-Item $script;