-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💾 Feat: Updating translation for English
- Loading branch information
1 parent
611f861
commit 192ecdd
Showing
13 changed files
with
201 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,69 +15,44 @@ createTime: 2025/01/25 11:24:47 | |
KitX 项目使用 Git 进行版本控制, 您可以通过以下命令获取源码: | ||
|
||
```shell | ||
git clone [email protected]:Crequency/KitX.git | ||
git clone [email protected]:Crequency/KitX.git --recurse-submodules | ||
cd KitX | ||
|
||
# 若您未设置 SSH 密钥, 可以使用 HTTPS 方式获取源码 | ||
# 此时, git clone 命令的链接请换成 https://github.com/Crequency/KitX.git | ||
``` | ||
|
||
**注意: 暂不支持通过 https 协议获取子模块, 强烈建议配置本地 git 以及 ssh 环境** | ||
::: warning | ||
|
||
--- | ||
**暂不支持通过 https 协议获取子模块, 强烈建议配置本地 git 以及 ssh 环境** | ||
|
||
### 初始化子模块 | ||
::: | ||
|
||
> 您也可以在上一步的 `clone` 命令中追加 `--recurse-submodules` 参数来获取子模块从而跳过这一步, 但是使用 `start.sh` 来初始化项目仍然是必须的 | ||
> 或者在 `clone` 命令之后, 在项目根目录执行 `git submodule update --recursive --remote` 来获取所有子模块 | ||
--- | ||
|
||
KitX 项目使用子模块来对仓库进行拆分, 您需要在获取源码后执行以下命令来初始化子模块: | ||
### 初始化依赖 | ||
|
||
```shell | ||
git submodule init | ||
``` | ||
|
||
使用 KitX 的初始化工具来选择获取哪些子模块并进行相关设置: | ||
使用 `cheese` 来选择初始化子模块并进行相关设置: | ||
|
||
:::: code-group | ||
::: code-group-item Bash | ||
::: tabs | ||
@tab 初始化依赖 | ||
```shell | ||
./ToolKits/start.sh <type> | ||
cheese reference --setup | ||
``` | ||
::: | ||
::: code-group-item PowerShell | ||
```pwsh | ||
./ToolKits/start.ps1 <type> | ||
@tab 安装 Cheese | ||
```shell | ||
# 您需要 dotnet sdk 才可以执行此命令 | ||
dotnet tool install cheese -g | ||
``` | ||
::: | ||
:::: | ||
|
||
其中 `<type>` 为开发类型, 可选值为: | ||
|
||
`list` | `dashboard` | `mobile` | `loader` | `plugin` | `installer` | `reference` | `all` | ||
|
||
若您想要开发 KitX PC 端客户端, 请 start `dashboard` 和 `reference` | ||
|
||
若您想要开发 KitX 移动端客户端, 请 start `mobile` | ||
|
||
若您想要开发加载器, 请 start `loader` | ||
|
||
若您想要开发插件, 请 start `loader` 和 `plugin` | ||
|
||
若您想要开发 KitX 安装包, 请 start `installer` | ||
|
||
您也可以随时 start `list` 来列出可供选择的开发类型 | ||
|
||
或者 start `all` 来更新所有子模块 | ||
> 如果遇到 `cheese` 命令出错的情况, 可以添加 `--verbose` 参数来查看详细错误信息 | ||
--- | ||
|
||
## 构建项目 | ||
|
||
### 编译前准备 | ||
|
||
1. 您需要安装 dotnet 7 SDK, 请前往 [dotnet 官网](https://dotnet.microsoft.com/download/dotnet/7.0) 下载并安装 | ||
安装成功的标志是: 成功运行命令 `dotnet --list-sdks` 并且列出了 dotnet 7 SDK 的版本号 | ||
1. 您需要安装 dotnet 8 SDK, 请前往 [dotnet 官网](https://dotnet.microsoft.com/download/dotnet/8.0) 下载并安装 | ||
安装成功的标志是: 成功运行命令 `dotnet --list-sdks` 并且列出了 dotnet 8 SDK 的版本号 | ||
|
||
--- | ||
|
||
|
@@ -109,8 +84,7 @@ dotnet publish /p:Profile=Properties/PublishProfiles/<xxx>.pubxml | |
您也可以执行以下命令来一键发布所有配置文件: | ||
|
||
```shell | ||
cd "ToolKits/KitX.ToolKits.Publisher" | ||
dotnet run | ||
cheese scripts -e publish | ||
``` | ||
|
||
::: | ||
|
@@ -121,7 +95,7 @@ dotnet run | |
|
||
您也可以使用一些 IDE 来构建项目 | ||
例如: | ||
- Visual Studio (推荐 2019 以上的版本, 目前建议使用 2022 版本) | ||
- Visual Studio (建议使用 2022 版本) | ||
- Jetbrains Rider | ||
|
||
其中, 您可以在 Visual Studio 中右键解决方案资源管理器中的项目, 选择 `发布`, 然后选择发布配置文件来进行发布 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,136 +1,109 @@ | ||
--- | ||
lang: en-US | ||
title: Get Started | ||
description: This page will lead you to get started with KitX | ||
createTime: 2025/01/25 11:25:05 | ||
title: Get started quickly | ||
description: This page guides newcomers to quickly get familiar with the KitX project -> including obtaining source code, first compilation, etc.... | ||
createTime: 2025/01/25 11:24:47 | ||
|
||
--- | ||
|
||
# Get Started | ||
# Get started quickly | ||
|
||
## Get Source Code | ||
## Get the source code | ||
|
||
### Clone Main Repository | ||
### Clone main warehouse | ||
|
||
KitX Project use Git to manage version, you can get source code by following command: | ||
The KitX project uses Git for version control, and you can get the source code through the following command: | ||
|
||
```shell | ||
git clone [email protected]:Crequency/KitX.git | ||
git clone [email protected]:Crequency/KitX.git --recurse-submodules | ||
cd KitX | ||
``` | ||
|
||
If you haven't set SSH key, you can use HTTPS to get source code: | ||
::: warning | ||
|
||
```shell | ||
git clone https://github.com/Crequency/KitX.git | ||
cd KitX | ||
``` | ||
**It is not supported to obtain submodules through the https protocol. It is strongly recommended to configure local git and ssh environments** | ||
|
||
--- | ||
::: | ||
|
||
### Init Submodules | ||
--- | ||
|
||
> And you can add `--recurse-submodules` to the command above to get submodules at the same time. | ||
### Initialize dependencies | ||
|
||
KitX Project use submodules to split the repository, you need to execute following command to init submodules: | ||
Use `cheese` to select the initialization submodule and make relevant settings: | ||
|
||
::: tabs | ||
@tab Initialize dependencies | ||
```shell | ||
git submodule init | ||
cheese reference --setup | ||
``` | ||
|
||
Then use KitX init tool to select which submodules you want to get: | ||
|
||
:::: code-group | ||
::: code-group-item Bash | ||
@tab Install Cheese | ||
```shell | ||
./ToolKits/start.sh <type> | ||
# You need dotnet sdk to execute this command | ||
dotnet tool install cheese -g | ||
``` | ||
::: | ||
::: code-group-item PowerShell | ||
```pwsh | ||
./ToolKits/start.ps1 <type> | ||
``` | ||
::: | ||
:::: | ||
|
||
You can select value of `<type>` to get different submodules: | ||
|
||
`dashboard` | `mobile` | `loader` | `plugin` | `installer` | `reference` | ||
|
||
If you want to develop KitX Dashboard PC Client, please start `dashboard` and `reference` | ||
|
||
If you want to develop KitX Mobile Client, please start `mobile` | ||
|
||
If you want to develop KitX Loader, please start `loader` | ||
|
||
If you want to develop KitX Plugins, please start `loader` and `plugin` | ||
|
||
If you want to develop KitX Installer, please start `installer` | ||
|
||
And you can always run `list` to list available types | ||
> If you encounter an error in the `cheese` command, you can add the `--verbose` parameter to view detailed error information | ||
--- | ||
|
||
## Build Project | ||
## Build a project | ||
|
||
### Preparations before build | ||
### Preparation before compilation | ||
|
||
1. You need to install dotnet 6 SDK, please go to [dotnet official website](https://dotnet.microsoft.com/download/dotnet/6.0) to download and install | ||
The sign of successful installation is: successfully run command `dotnet --list-sdks` and list dotnet 6 SDK version | ||
2. You need to install dotnet 6 SDK, please go to [dotnet official website](https://dotnet.microsoft.com/download/dotnet/7.0) to download and install | ||
The way to check if installation is successful is the same as above, part of projects use dotnet 7 while others use dotnet 6 | ||
1. You need to install dotnet 8 SDK, please go to [dotnet official website](https://dotnet.microsoft.com/download/dotnet/8.0) to download and install | ||
The installation is successful: the command `dotnet --list-sdks` was successfully run and the version number of the dotnet 8 SDK is listed. | ||
|
||
--- | ||
|
||
### Compile | ||
### Compilation | ||
|
||
You only need to `cd` to the project directory (contains `.csproj` file) you want to compile, and then run the following command: | ||
You just need `cd` to the project directory you want to compile (including the `.csproj` file), and then run the following command: | ||
|
||
```shell | ||
dotnet build | ||
``` | ||
|
||
If you run the command `dotnet run`, the project will be compiled and run automatically | ||
If you run the command `dotnet run`, the project will be automatically compiled and run. | ||
|
||
::: details Compile for publish | ||
::: details Release-oriented compilation | ||
|
||
You may notice that there are many files with `.pubxml` suffix in `KitX Dashboard/Properties/PublishProfiles/` | ||
You may notice that there are many files with `.pubxml` suffix under `KitX Dashboard/Properties/PublishProfiles/` | ||
|
||
These are the publish profiles, you can use the following command: | ||
These are the Publish configuration files, you can use the commands: | ||
|
||
```shell | ||
cd "KitX Dashboard" | ||
dotnet publish /p:Profile=Properties/PublishProfiles/<xxx>.pubxml | ||
``` | ||
|
||
to publish with these profiles, where `<xxx>` is the name of the profile file | ||
To publish using these configuration files, where `<xxx>` is the configuration file name | ||
|
||
The binary file will be generated in `KitX Publish/` | ||
The published binary file will exist under `KitX Publish/` | ||
|
||
And you can execute the following command to publish all profiles at once: | ||
You can also execute the following command to publish all configuration files in one click: | ||
|
||
```shell | ||
cd "ToolKits/KitX.ToolKits.Publisher" | ||
dotnet run | ||
cheese scripts -e publish | ||
``` | ||
|
||
::: | ||
|
||
--- | ||
|
||
### Other Build Methods | ||
### Other construction methods | ||
|
||
You can also use some IDE to build the project | ||
You can also use some IDEs to build your project | ||
For example: | ||
- Visual Studio (Recommended version: 2019 or above, currently recommended version: 2022) | ||
- Visual Studio (Recommended to use version 2022) | ||
- Jetbrains Rider | ||
|
||
In Visual Studio, you can right-click the project in the solution explorer, and select `Publish`, then select the publish profile to publish | ||
You can also use similar operations in Rider to publish | ||
Among them, you can right-click the project in Solution Explorer in Visual Studio, select `Publish`, and then select Publish configuration file to publish | ||
You can also use similar actions in Rider to publish | ||
|
||
Or, you can also configure your editor to simplify the build process | ||
Alternatively, you can configure an editor to simplify the build steps | ||
For example: | ||
- Visual Studio Code | ||
- Vim | ||
|
||
Here is the omitted steps to configure the editor, please search for related tutorials yourself | ||
The steps to configure the editor are omitted here, please search for relevant tutorials by yourself |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.