forked from openkylin/kylin-code
parent
05e6c5e6c0
commit
9e718da1b4
22
README.md
22
README.md
|
@ -1,14 +1,18 @@
|
||||||
1,下载源码:
|
kylin-code fork 自 [Code OSS](https://github.com/microsoft/vscode) 项目,集成了一些 openKylin 的特色插件以及 [openvsx](https://open-vsx.org/) 插件商店。致力于为 openKylin 社区提供集程序编辑、编译、调试、发布、分析等全套开发流程的编程环境,后续将支持C、C++、Java、Go多种等编程语言,以满足 openKylin 平台上的软件开发需求。
|
||||||
|
|
||||||
|
## 构建步骤
|
||||||
|
|
||||||
|
1. 下载源码:
|
||||||
|
|
||||||
git clone https://gitee.com/openkylin/kylin-code.git
|
git clone https://gitee.com/openkylin/kylin-code.git
|
||||||
|
|
||||||
2,安装指定版本nodejs:
|
2. 安装指定版本nodejs:
|
||||||
|
|
||||||
版本要求:>=16.14.x and <17
|
版本要求:>=16.14.x and <17
|
||||||
|
|
||||||
获取地址:https://nodejs.org/dist/
|
获取地址:https://nodejs.org/dist/
|
||||||
|
|
||||||
3,安装yarn
|
3. 安装yarn
|
||||||
|
|
||||||
yarn有版本要求,如果未安装或提示版本不符。可以安装1.17.0
|
yarn有版本要求,如果未安装或提示版本不符。可以安装1.17.0
|
||||||
|
|
||||||
|
@ -20,13 +24,13 @@
|
||||||
|
|
||||||
npm install --global yarn@1.17.0
|
npm install --global yarn@1.17.0
|
||||||
|
|
||||||
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慢的问题)
|
||||||
|
|
||||||
|
@ -45,21 +49,21 @@
|
||||||
|
|
||||||
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. 构建
|
||||||
|
|
||||||
yarn watch
|
yarn watch
|
||||||
|
|
||||||
8,运行
|
8. 运行
|
||||||
|
|
||||||
./scripts/code.sh
|
./scripts/code.sh
|
||||||
|
|
||||||
9,更换商店地址
|
9. 更换商店地址
|
||||||
|
|
||||||
源码目录下product.json
|
源码目录下product.json
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue