Skip to content

Commit

Permalink
Bring Windows build details up to date. Requires Node 8.x and all can…
Browse files Browse the repository at this point in the history
… be done from cmd.exe (don't need different shells)

Closes eclipse-theia#1614
See also eclipse-theia#2009
  • Loading branch information
adamretter committed Aug 18, 2018
1 parent 9a2cb40 commit 0836a7a
Showing 1 changed file with 53 additions and 21 deletions.
74 changes: 53 additions & 21 deletions doc/Developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,29 +235,61 @@ etc.) by opening `packages/<package name>/coverage/index.html`.

## Building on Windows

Run cmd.exe as an administrator and install `choco` by copy-pasting the command
to your console:
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".

@"%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"

Install `yarn` via `choco` (**NOTE**: the version is important!). The `yarn` installation ensures that you will have
Node.js and npm too:

choco install yarn --version 1.7.0 -y

Install `git` via `choco`
2. Install `choco` by copy and pasting the command below into the Command Prompt, and then pressing the `return` key to run it:

choco install git -y

Install Windows-Build-Tools.
Run PowerShell as an administrator and copy-paste the below command:

npm --add-python-to-path install --global --production windows-build-tools

Clone, build and run Theia.
Using Git Bash as administrator:

git clone https://github.com/theia-ide/theia.git && cd theia && yarn && cd examples/browser && yarn run start
```ps
@"%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"
```

3. Refresh the environment settings by running the following command in the Command Prompt:
```ps
refreshenv
```

4. Install NodeJS via. choco (**NOTE**: the version is important!) by running the following in the Command Prompt:
```ps
choco install nodejs.install --version 8.11.4 -y
```

5. Install Yarn via. choco (**NOTE**: the version is important!) by running the following in the Command Prompt:
```ps
choco install yarn --version 1.7.0 -y
```

6. Install Git via. Choco:
```ps
choco install git -y
```

7. Refresh the environment settings by running the following command in the Command Prompt:
```ps
refreshenv
```

8. Install the Windows build tools via. npm:
```ps
npm --add-python-to-path install --global --production windows-build-tools
```

9. Refresh the environment settings by running the following command in the Command Prompt:
```ps
refreshenv
```

10. Clone, and build Theia:
```ps
git clone https://github.com/theia-ide/theia.git
cd theia
yarn
```

11. Run the Theia Browser Example app:
```ps
cd examples\browser
yarn run start
```

## Troubleshooting

Expand Down

0 comments on commit 0836a7a

Please sign in to comment.