Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 38 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,62 @@

## 使用方法

1. 确保电脑已安装以下软件
1. 确认您正在访问 https://github.com/bddjr/makeccx ,而不是别人的扩展仓库。

2. 确保电脑已安装以下软件

> [Git](https://git-scm.com/)
> [Node.js](https://nodejs.org/)
> [pnpm](https://pnpm.io/zh/)
> [VSCode](https://code.visualstudio.com/)
> [VSCode](https://code.visualstudio.com/)

2. 请确保您正在访问 https://github.com/bddjr/makeccx 。
点击右上角绿色 `Use this template` 按钮,然后点击 `Create a new repository` 创建仓库,
然后按照规范命名仓库,例如 `clipcc-extension-example` 。
3. 点击右上角的绿色 `Use this template` 按钮,
然后点击 `Create a new repository` 创建仓库。

3. 使用 `git clone` 将仓库下载到本地。
此处请将右侧网址替换成自己仓库的网址。
4. 按照规范命名仓库,例如 `clipcc-extension-example` 。

```
git clone https://github.com/myname/clipcc-extension-example
```

4. 进入文件夹,然后使用 `pnpm i` 安装依赖。
5. 使用 `git clone` 将仓库下载到本地。

```
cd clipcc-extension-example
pnpm i
git clone <此处填写仓库的网址>
```

5. 扩展源代码在 `src` 文件夹。
更改文件 `src/info.json` ,例如将 `id` 改为 `myname.example`。
6. 使用 VSCode 打开文件夹。

7. 更改文件 `src/info.json` ,例如将 `id` 改为 `myname.example`。

```json
{
"id": "myname.example",
"author": "My Name",
```

6. 运行 `pnpm build` 构建扩展,结果在 `dist` 文件夹。
8. 在 VSCode 里新建终端,然后运行以下命令安装依赖。

```
pnpm i
```

7. 如果您要发布扩展,请重写 `README.md` 文件。
9. 运行以下命令构建 `ccx` 文件,结果在 `dist` 文件夹。

```
pnpm build
```

10. 将 `README.md` 清空,然后重写为如下格式

````md
# Example
简单介绍一下扩展。

## 下载并构建扩展
```
git clone <此处填写仓库的网址>
cd <此处填写仓库名称>
pnpm i
pnpm build
```
````

---

Expand Down Expand Up @@ -106,6 +125,6 @@ defineBlock({

构建器源代码在 `makeccx/makeccx.ts` 文件,配置参数在 `makeccx.config.ts` 文件,您可自行调整。

本项目略有更改,[ClipCC 官方文档](https://doc.codingclip.com/zh-cn/category/for-developers)仅供参考,请以实际情况为准。
本项目略有更改,[ClipCC 官方文档](https://doc.codingclip.com/zh-cn/category/for-developers)仅供参考,请以实际情况为准。

本项目并非 ClipCC 官方项目,作者不属于 Clip Team 。
7 changes: 2 additions & 5 deletions makeccx/makeccx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@


// ============================================
// 测试版版本号例如(结尾是日期缩写,时区UTC+8):
// dev-1.0.0-250515
// 正式版版本号例如:
// 1.0.0
const version = "dev-1.0.1-250516"

const version = "1.0.2"

console.log(`makeccx ${version}`)

Expand Down