diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-07-27 00:25:36 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-07-27 00:25:36 +0530 |
commit | fed0af0b47641a21b50a396a5ea633e9ee41ee65 (patch) | |
tree | 984823f6fa0ab2afa0b35e743a410a90d2bf0a10 /tools | |
parent | 418e8489b3c589f5f6998903d08131412cfd4e2e (diff) |
bootstrap-windows.ps1: Remove hard-coded MSYS2 directory
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1235>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bootstrap- | 0 | ||||
-rw-r--r-- | tools/bootstrap-windows.ps1 | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/bootstrap- b/tools/bootstrap- new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tools/bootstrap- diff --git a/tools/bootstrap-windows.ps1 b/tools/bootstrap-windows.ps1 index 81c881f9..49a4000b 100644 --- a/tools/bootstrap-windows.ps1 +++ b/tools/bootstrap-windows.ps1 @@ -136,11 +136,12 @@ $MSYS2_Dir = (Get-MSYS2) if (!$MSYS2_Dir) { Write-Host "MSYS2 not found, installing..." choco install msys2 --params "/InstallDir:C:\msys64" + $MSYS2_Dir = "C:\msys64" } -C:\msys64\usr\bin\bash -lc 'pacman -Qq winpty &>/dev/null' +& $MSYS2_Dir\usr\bin\bash -lc 'pacman -Qq winpty &>/dev/null' if (!$?) { - C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S --needed winpty' + & $MSYS2_Dir\usr\bin\bash -lc 'pacman --noconfirm -S --needed winpty' } if (!((Get-Content "$MSYS2_Dir\ucrt64.ini") -clike "MSYS2_PATH_TYPE=inherit")) { Add-Content "$MSYS2_Dir\ucrt64.ini" "`nMSYS2_PATH_TYPE=inherit" |