Skip to content

Commit cd9c079

Browse files
larponspytheman
andauthored
readme: add more detailed instructions for PS (on windows) (#1049)
Co-authored-by: Delyan Angelov <[email protected]>
1 parent d7f5a97 commit cd9c079

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,19 @@ git clone https://github.com/vlang/sdl.git ~/.vmodules/sdl
4848
cd ~/.vmodules/sdl
4949
git checkout 3.2.0
5050
```
51-
and for Windows:
51+
... and for Windows in cmd.exe:
5252
```bash
5353
git clone https://github.com/vlang/sdl.git %HOMEPATH%/.vmodules/sdl
5454
cd %HOMEPATH%/.vmodules/sdl
5555
git checkout 3.2.0
5656
```
57+
... and for Windows in PowerShell (PS):
58+
```bash
59+
git clone https://github.com/vlang/sdl.git "$HOME/.vmodules/sdl"
60+
cd "$HOME/.vmodules/sdl"
61+
git checkout 3.2.0
62+
```
63+
5764
Then follow the steps in the [Windows](#windows) section below.
5865

5966
You can see what `sdl` releases are available in the [GitHub repository](https://github.com/vlang/sdl/branches) via branches.
@@ -147,12 +154,20 @@ brew install sdl3
147154
```
148155

149156
### Windows
150-
151157
It is necessary to install the SDL3 development libraries for Windows.
152-
To do this, change to the root directory of the sdl module, like
153-
`cd %HOMEPATH%\.vmodules\sdl`
154-
and run
155-
`v run windows_install_dependencies.vsh`.
158+
159+
To do this, run this in cmd.exe:
160+
```bash
161+
cd %HOMEPATH%\.vmodules\sdl
162+
v run windows_install_dependencies.vsh
163+
```
164+
165+
In Powershell, instead of the above, run this:
166+
```bash
167+
cd "$HOME/.vmodules/sdl"
168+
v run windows_install_dependencies.vsh
169+
```
170+
156171
This will create a directory called "thirdparty" which will be used to download and
157172
extract the required libraries. To successfully run a provided example or your own projects,
158173
the sdl dlls must be copied to the main application directory. e.g.:

0 commit comments

Comments
 (0)