Go to file
chriswang521 2aac1ddf3a git提交时移除校验product.json中的extensionsGallery字段 2023-05-19 10:32:20 +08:00
.devcontainer from 1.68.0 2022-06-14 14:37:10 +08:00
.github from 1.68.0 2022-06-14 14:37:10 +08:00
.vscode from 1.68.0 2022-06-14 14:37:10 +08:00
build git提交时移除校验product.json中的extensionsGallery字段 2023-05-19 10:32:20 +08:00
extensions Revert "Fixed webviews are broken on Firefox from upstream 1.68版本" 2023-04-07 09:49:59 +08:00
remote from 1.68.0 2022-06-14 14:37:10 +08:00
resources 修复构建RPM包时报错问题。 2023-03-30 15:47:53 +08:00
scripts from 1.68.0 2022-06-14 14:37:10 +08:00
src Fixed Icons missing from extension trees with resource uris from upstream 2023-04-07 09:55:37 +08:00
test from 1.68.0 2022-06-14 14:37:10 +08:00
.editorconfig from 1.68.0 2022-06-14 14:37:10 +08:00
.eslintignore from 1.68.0 2022-06-14 14:37:10 +08:00
.eslintrc.json from 1.68.0 2022-06-14 14:37:10 +08:00
.git-blame-ignore from 1.68.0 2022-06-14 14:37:10 +08:00
.gitattributes from 1.68.0 2022-06-14 14:37:10 +08:00
.gitignore from 1.68.0 2022-06-14 14:37:10 +08:00
.lsifrc.json from 1.68.0 2022-06-14 14:37:10 +08:00
.mailmap from 1.68.0 2022-06-14 14:37:10 +08:00
.mention-bot from 1.68.0 2022-06-14 14:37:10 +08:00
.yarnrc from 1.68.0 2022-06-14 14:37:10 +08:00
CONTRIBUTING.md from 1.68.0 2022-06-14 14:37:10 +08:00
LICENSE.txt from 1.68.0 2022-06-14 14:37:10 +08:00
README.md format markdown file 2022-07-28 17:03:06 +08:00
SECURITY.md from 1.68.0 2022-06-14 14:37:10 +08:00
ThirdPartyNotices.txt from 1.68.0 2022-06-14 14:37:10 +08:00
cglicenses.json from 1.68.0 2022-06-14 14:37:10 +08:00
cgmanifest.json from 1.68.0 2022-06-14 14:37:10 +08:00
gulpfile.js from 1.68.0 2022-06-14 14:37:10 +08:00
package.json from 1.68.0 2022-06-14 14:37:10 +08:00
product.json Integrate openvsx registry into kylin-code 2022-08-19 15:03:32 +08:00
tsfmt.json from 1.68.0 2022-06-14 14:37:10 +08:00
yarn.lock from 1.68.0 2022-06-14 14:37:10 +08:00

README.md

kylin-code fork 自 Code OSS 项目,集成了一些 openKylin 的特色插件以及 openvsx 插件商店。致力于为 openKylin 社区提供集程序编辑、编译、调试、发布、分析等全套开发流程的编程环境后续将支持C、C++、Java、Go多种等编程语言以满足 openKylin 平台上的软件开发需求。

构建步骤

  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, 在其中添加 (注意,在.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 中添加如下json片段配置 open vsx 开源插件商店:

    "extensionsGallery": {
    "serviceUrl": "https://open-vsx.org/vscode/gallery",
    "itemUrl": "https://open-vsx.org/vscode/item"
    }