Skip to content

Commit b7d3de8

Browse files
committed
Bring Windows build details up to date. Requires Node 8.x and all can be done from cmd.exe (don't need different shells)
Closes eclipse-theia#1614 See also eclipse-theia#2009
1 parent 9a2cb40 commit b7d3de8

File tree

1 file changed

+53
-21
lines changed

1 file changed

+53
-21
lines changed

doc/Developing.md

+53-21
Original file line numberDiff line numberDiff line change
@@ -235,29 +235,61 @@ etc.) by opening `packages/<package name>/coverage/index.html`.
235235

236236
## Building on Windows
237237

238-
Run cmd.exe as an administrator and install `choco` by copy-pasting the command
239-
to your console:
238+
1. Run cmd.exe as an Administrator. You can do this by right-clicking "Command Prompt" in the Windows Start Menu, and then right-clicking "Run as Administrator".
240239

241-
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
242-
243-
Install `yarn` via `choco` (**NOTE**: the version is important!). The `yarn` installation ensures that you will have
244-
Node.js and npm too:
245-
246-
choco install yarn --version 1.7.0 -y
247-
248-
Install `git` via `choco`
240+
2. Install Chocolately (which will give you the `choco` command) by copy and pasting the command below into the Command Prompt, and then pressing the <kbd>return</kbd> key to run it:
249241

250-
choco install git -y
251-
252-
Install Windows-Build-Tools.
253-
Run PowerShell as an administrator and copy-paste the below command:
254-
255-
npm --add-python-to-path install --global --production windows-build-tools
256-
257-
Clone, build and run Theia.
258-
Using Git Bash as administrator:
259-
260-
git clone https://github.com/theia-ide/theia.git && cd theia && yarn && cd examples/browser && yarn run start
242+
```ps
243+
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
244+
```
245+
246+
3. Refresh the environment settings by running the following command in the Command Prompt:
247+
```ps
248+
refreshenv
249+
```
250+
251+
4. Install Node.js via. choco (**NOTE**: the version is important!) by running the following in the Command Prompt:
252+
```ps
253+
choco install nodejs.install --version 8.11.4 -y
254+
```
255+
256+
5. Install Yarn via. choco (**NOTE**: the version is important!) by running the following in the Command Prompt:
257+
```ps
258+
choco install yarn --version 1.7.0 -y
259+
```
260+
261+
6. Install Git via. choco:
262+
```ps
263+
choco install git -y
264+
```
265+
266+
7. Refresh the environment settings by running the following command in the Command Prompt:
267+
```ps
268+
refreshenv
269+
```
270+
271+
8. Install the Windows build tools via. npm:
272+
```ps
273+
npm --add-python-to-path install --global --production windows-build-tools
274+
```
275+
276+
9. Refresh the environment settings by running the following command in the Command Prompt:
277+
```ps
278+
refreshenv
279+
```
280+
281+
10. Clone, and build Theia:
282+
```ps
283+
git clone https://github.com/theia-ide/theia.git
284+
cd theia
285+
yarn
286+
```
287+
288+
11. Run the Theia Browser Example app:
289+
```ps
290+
cd examples\browser
291+
yarn run start
292+
```
261293

262294
## Troubleshooting
263295

0 commit comments

Comments
 (0)