Skip to content

Commit a374160

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 7d4fcad commit a374160

File tree

1 file changed

+53
-25
lines changed

1 file changed

+53
-25
lines changed

doc/Developing.md

+53-25
Original file line numberDiff line numberDiff line change
@@ -250,33 +250,61 @@ etc.) by opening `packages/<package name>/coverage/index.html`.
250250

251251
## Building on Windows
252252

253-
Run cmd.exe as an administrator and install `choco` by copy-pasting the command
254-
to your console:
253+
1. Run cmd.exe as an Administrator. You can do this by pressing <kbd>Win</kbd>+<kbd>r</kbd> and entering `runas /user:Administrator cmd` in the open text box, and then clicking OK or pressing <kbd>Enter</kbd>.
255254

256-
@"%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"
257-
258-
Install `yarn` via `choco`. The `yarn` installation ensures that you will have
259-
Node.js and npm too:
260-
261-
choco install yarn
262-
263-
Install `git` via `choco`
264-
265-
choco install git
266-
267-
Install the correct version of `yarn` (The version is important)
255+
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:
268256

269-
choco install yarn --version 1.7.0 -y
270-
271-
Install Windows-Build-Tools.
272-
Run PowerShell as an administrator and copy-paste the below command:
273-
274-
npm --add-python-to-path install --global --production windows-build-tools
275-
276-
Clone, build and run Theia.
277-
Using Git Bash as administrator:
278-
279-
git clone https://github.com/theia-ide/theia.git && cd theia && yarn && cd examples/browser && yarn run start
257+
```ps
258+
@"%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"
259+
```
260+
261+
3. Refresh the environment settings by running the following command in the Command Prompt:
262+
```ps
263+
refreshenv
264+
```
265+
266+
4. Install Node.js via. choco (**NOTE**: the version is important!) by running the following in the Command Prompt:
267+
```ps
268+
choco install nodejs.install --version 8.11.4 -y
269+
```
270+
271+
5. Install Yarn via. choco (**NOTE**: the version is important!) by running the following in the Command Prompt:
272+
```ps
273+
choco install yarn --version 1.7.0 -y
274+
```
275+
276+
6. Install Git via. choco:
277+
```ps
278+
choco install git -y
279+
```
280+
281+
7. Refresh the environment settings by running the following command in the Command Prompt:
282+
```ps
283+
refreshenv
284+
```
285+
286+
8. Install the Windows build tools via. npm:
287+
```ps
288+
npm --add-python-to-path install --global --production windows-build-tools
289+
```
290+
291+
9. Refresh the environment settings by running the following command in the Command Prompt:
292+
```ps
293+
refreshenv
294+
```
295+
296+
10. Clone, and build Theia:
297+
```ps
298+
git clone https://github.com/theia-ide/theia.git
299+
cd theia
300+
yarn
301+
```
302+
303+
11. Run the Theia Browser Example app:
304+
```ps
305+
cd examples\browser
306+
yarn run start
307+
```
280308

281309
## Troubleshooting
282310

0 commit comments

Comments
 (0)