From 05e6c5e6c0e5994acd732bf260d881805155d036 Mon Sep 17 00:00:00 2001 From: zhangyun-2022 Date: Tue, 14 Jun 2022 18:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index cff68d79..6acf6e86 100644 --- a/README.md +++ b/README.md @@ -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 + 4,C/C++ compiler tool chain + sudo apt-get update + sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev 5,npm/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" + }, +