summaryrefslogtreecommitdiff
path: root/cerbero-uninstalled.ps1
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-07-24 20:08:15 +0530
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-07-26 15:06:16 +0000
commitaf832860b4260d4c3afb96dc972ded6682977956 (patch)
tree58bf39660e66d51d1756780d31eed4747e72c6fb /cerbero-uninstalled.ps1
parent345fd0d00249b9ffb4714da79288cf5c66c2d4d5 (diff)
cerbero: Allow running from cmd or powershell
It will simply find MSYS2 and invoke it. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1226>
Diffstat (limited to 'cerbero-uninstalled.ps1')
-rw-r--r--cerbero-uninstalled.ps110
1 files changed, 10 insertions, 0 deletions
diff --git a/cerbero-uninstalled.ps1 b/cerbero-uninstalled.ps1
new file mode 100644
index 00000000..9b22270d
--- /dev/null
+++ b/cerbero-uninstalled.ps1
@@ -0,0 +1,10 @@
+. "$PSScriptRoot\tools\common.ps1"
+
+$WD = (Get-MSYS2)
+if (!$WD) {
+ Write-Host "Could not auto-detect MSYS2 install, please install it or run tools\bootstrap-windows.ps1"
+ exit 1
+}
+Write-Host "Auto-detected MSYS2 install location as $WD"
+$CerberoDir = $PSScriptRoot.replace('\', '/')
+Invoke-Expression "$WD\msys2_shell.cmd -ucrt64 -defterm -no-start -here -use-full-path -c `"$CerberoDir/cerbero-uninstalled $args`""