summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-07-27 00:25:36 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2024-01-30 00:26:38 +0530
commit4ab8e00e028b480832a0c55863fb6fa907ff5238 (patch)
treec5c93ab1c7c8ba49fa84e0fc255221db7ab1acec
parent24901e9ac3610bd1b844efb9d5ea0d5ed9039ce9 (diff)
bootstrap-windows.ps1: Remove hard-coded MSYS2 directory
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1239>
-rw-r--r--tools/bootstrap-0
-rw-r--r--tools/bootstrap-windows.ps15
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 df4ceaf6..8b60018c 100644
--- a/tools/bootstrap-windows.ps1
+++ b/tools/bootstrap-windows.ps1
@@ -135,11 +135,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"