chore: Add Windows system dependencies install script. (#1396)
Close #1390
This commit is contained in:
parent
93f5c03c92
commit
80d490159e
4 changed files with 24 additions and 2 deletions
|
|
@ -22,10 +22,26 @@ Before you start to write code, please read the existing code to follow the same
|
|||
|
||||
## 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
|
||||
|
||||
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.
|
||||
|
||||
```bash
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
echo "Install Linux dependencies..."
|
||||
script/install-linux-deps
|
||||
script/install-linux.sh
|
||||
else
|
||||
echo "Install macOS dependencies..."
|
||||
fi
|
||||
|
|
|
|||
6
script/install-window.ps1
Normal file
6
script/install-window.ps1
Normal 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
|
||||
Loading…
Reference in a new issue