Simplify aliae installation

This commit is contained in:
Manuel Thalmann 2024-03-21 00:15:51 +01:00
parent c9971d32e0
commit 356611b169
2 changed files with 3 additions and 13 deletions

View file

@ -1,13 +1,3 @@
#!/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 ("bash `"$PSScriptRoot/../../../Common/Config/aliae/install.sh`"");
Write-Information "Running prepared script";
Start-Process -Wait $script;
Remove-Item $script;
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
Start-BashScript "bash `"$PSScriptRoot/../../../Common/Config/aliae/install.sh`"";

View file

@ -4,4 +4,4 @@ param($context);
[Context] $context = $context;
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.Aliae;
. "$PSScriptRoot/../../Config/aliae/Install.ps1" $context;
. "$PSScriptRoot/../../Config/aliae/Install.ps1";