From d862e56e34ad1a76836cc2716b473a61879f2205 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 27 Mar 2026 21:15:00 +0100 Subject: feat: init desktop app --- apps/desktop/script/setup.ps1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apps/desktop/script/setup.ps1 (limited to 'apps/desktop/script/setup.ps1') diff --git a/apps/desktop/script/setup.ps1 b/apps/desktop/script/setup.ps1 new file mode 100644 index 00000000..63f7fd1a --- /dev/null +++ b/apps/desktop/script/setup.ps1 @@ -0,0 +1,27 @@ +# Installs the native build tools GPUI needs to compile on Windows. +# Run script/setup-rust.ps1 first if you don't have Rust installed yet. + +$ErrorActionPreference = "Stop" + +function Check-VSBuildTools { + $vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" + + if (-not (Test-Path $vswhere)) { + return $false + } + + $result = & $vswhere -latest -requires Microsoft.VisualStudio.Workload.NativeDesktop -property installationPath + return $result -and $result.Trim().Length -gt 0 +} + +if (-not (Check-VSBuildTools)) { + Write-Output "" + Write-Output "Visual Studio Build Tools with 'Desktop development with C++' not found." + Write-Output "" + Write-Output "Install it from: https://visualstudio.microsoft.com/visual-cpp-build-tools/" + Write-Output "Check the 'Desktop development with C++' workload during setup, then re-run this script." + Write-Output "" + exit 1 +} + +Write-Output "Desktop native dependencies ready." -- cgit v1.3.1