chore: Add Windows system dependencies install script. (#1396)

Close #1390
This commit is contained in:
Jason Lee 2025-10-17 11:43:07 +08:00 committed by GitHub
parent 93f5c03c92
commit 80d490159e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 2 deletions

View file

@ -22,10 +22,26 @@ Before you start to write code, please read the existing code to follow the same
## Development and Testing ## Development and Testing
There are a lot of UI test cases in the `crates/story` folder, if you change the existing features you can run the tests to make sure they are working. ### System dependencies
The `script` folder contains some useful scripts to help you set up the development environment.
To install the system dependencies, run the following script:
```bash
./script/bootstrap
```
For Windows, you can run the following command in PowerShell:
```powershell
.\script\install-window.ps1
```
### Run story ### Run story
There are a lot of UI test cases in the `crates/story` folder, if you change the existing features you can run the tests to make sure they are working.
Use `cargo run` to run the complete story examples to display them all in a gallery of GPUI components. Use `cargo run` to run the complete story examples to display them all in a gallery of GPUI components.
```bash ```bash

View file

@ -2,7 +2,7 @@
if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "Install Linux dependencies..." echo "Install Linux dependencies..."
script/install-linux-deps script/install-linux.sh
else else
echo "Install macOS dependencies..." echo "Install macOS dependencies..."
fi fi

View file

@ -0,0 +1,6 @@
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
winget install Microsoft.VisualStudio.2022.Community --silent --override "--wait --quiet --add ProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"
scoop bucket add extras
scoop install cmake