调整格式

This commit is contained in:
zhangyun-2022 2022-06-14 18:20:16 +08:00
parent 43b03aa665
commit 05e6c5e6c0
1 changed files with 33 additions and 0 deletions

View File

@ -1,43 +1,76 @@
1下载源码
git clone https://gitee.com/openkylin/kylin-code.git
2安装指定版本nodejs
版本要求:>=16.14.x and <17
获取地址https://nodejs.org/dist/
3安装yarn
yarn有版本要求如果未安装或提示版本不符。可以安装1.17.0
卸载yarn
npm uninstall yarn --global
安装:
npm install --global yarn@1.17.0
4C/C++ compiler tool chain
sudo apt-get update
sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev
5npm/yarn设置
设置淘宝镜像(解决下载electron慢的问题)
yarn config set registry http://registry.npm.taobao.org/
npm config set registry https://registry.npm.taobao.org
在项目根目录新建文件.npmrc
vim .npmrc
在其中添加 (注意,在.npmrc中必须小写在环境变量中是大写)
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
registry=https://registry.npm.taobao.org
electron_mirror=https://npm.taobao.org/mirrors/electron/
6安装依赖
cd kylin-code
yarn
7构建
yarn watch
8运行
./scripts/code.sh
9更换商店地址
源码目录下product.json
open vsx开源插件商店
"extensionsGallery": {
"serviceUrl": "https://open-vsx.org/vscode/gallery",
"itemUrl": "https://open-vsx.org/vscode/item"
},