mirror of
https://github.com/coder/code-server.git
synced 2025-08-02 05:18:56 +08:00
Add build scripts
This commit is contained in:
12
README.md
12
README.md
@ -51,13 +51,19 @@ Quickstart guides for [Google Cloud](doc/admin/install/google_cloud.md), [AWS](d
|
||||
How to [secure your setup](/doc/security/ssl.md).
|
||||
|
||||
## Build
|
||||
- Run `yarn build ${vscodeVersion}`in this directory (for example, `yarn build 1.35.0`).
|
||||
- If you also plan on developing, set the `OUT` environment variable: `
|
||||
export OUT=/path/to/some/directory`. Otherwise it will build in this
|
||||
directory which will cause issues because then `yarn watch` will try to
|
||||
compile the build directory as well.
|
||||
- Run `yarn build ${vscodeVersion} ${target} ${arch}`in this directory (for example:
|
||||
`yarn build 1.35.0 linux x64`).
|
||||
|
||||
## Development
|
||||
|
||||
- Clone VS Code.
|
||||
- Clone code-server to `src/vs/server` in the VS Code source.
|
||||
- Run `yarn` in this directory (only need to do this once).
|
||||
- Run `yarn` in the VS Code root directory.
|
||||
- Clone this repository to `src/vs/server` in the VS Code source.
|
||||
- Run `yarn` in this directory.
|
||||
- Run `yarn watch` in this directory.
|
||||
- Wait for the initial compilation to complete.
|
||||
- Run `yarn start` in this directory.
|
||||
|
Reference in New Issue
Block a user