forked from openkylin/kylin-code
format markdown file
This commit is contained in:
parent
9e718da1b4
commit
f144995a17
27
README.md
27
README.md
|
@ -27,32 +27,24 @@ kylin-code fork 自 [Code OSS](https://github.com/microsoft/vscode) 项目,集
|
||||||
4. C/C++ compiler tool chain
|
4. C/C++ compiler tool chain
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev
|
sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev
|
||||||
|
|
||||||
5. npm/yarn设置
|
5. npm/yarn 设置
|
||||||
|
|
||||||
设置淘宝镜像(解决下载electron慢的问题)
|
设置淘宝镜像(解决下载electron慢的问题)
|
||||||
|
|
||||||
yarn config set registry http://registry.npm.taobao.org/
|
yarn config set registry http://registry.npm.taobao.org/
|
||||||
|
|
||||||
npm config set registry https://registry.npm.taobao.org
|
npm config set registry https://registry.npm.taobao.org
|
||||||
|
|
||||||
在项目根目录新建文件.npmrc
|
在项目根目录新建文件.npmrc, 在其中添加 (注意,在.npmrc中必须小写,在环境变量中是大写)
|
||||||
vim .npmrc
|
|
||||||
|
|
||||||
在其中添加 (注意,在.npmrc中必须小写,在环境变量中是大写)
|
|
||||||
|
|
||||||
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
|
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
|
||||||
|
|
||||||
registry=https://registry.npm.taobao.org
|
registry=https://registry.npm.taobao.org
|
||||||
|
|
||||||
electron_mirror=https://npm.taobao.org/mirrors/electron/
|
electron_mirror=https://npm.taobao.org/mirrors/electron/
|
||||||
|
|
||||||
6. 安装依赖
|
6. 安装依赖
|
||||||
|
|
||||||
cd kylin-code
|
cd kylin-code
|
||||||
|
|
||||||
yarn
|
yarn
|
||||||
|
|
||||||
7. 构建
|
7. 构建
|
||||||
|
@ -63,18 +55,13 @@ kylin-code fork 自 [Code OSS](https://github.com/microsoft/vscode) 项目,集
|
||||||
|
|
||||||
./scripts/code.sh
|
./scripts/code.sh
|
||||||
|
|
||||||
9. 更换商店地址
|
9. 配置商店地址
|
||||||
|
|
||||||
源码目录下product.json
|
在源码根目录下的 product.json 中添加如下json片段,配置 open vsx 开源插件商店:
|
||||||
|
|
||||||
open vsx开源插件商店:
|
|
||||||
|
|
||||||
|
```json
|
||||||
"extensionsGallery": {
|
"extensionsGallery": {
|
||||||
|
|
||||||
"serviceUrl": "https://open-vsx.org/vscode/gallery",
|
"serviceUrl": "https://open-vsx.org/vscode/gallery",
|
||||||
|
|
||||||
"itemUrl": "https://open-vsx.org/vscode/item"
|
"itemUrl": "https://open-vsx.org/vscode/item"
|
||||||
|
}
|
||||||
},
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue