feat:plugin

This commit is contained in:
dawnwinterLiu 2024-02-26 09:52:49 +08:00
parent 83bc574369
commit d6978b09d7
2 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,4 @@
<a href="https://competition.atomgit.com/competitionInfo?id=2b580e8c23bd4f1ef2cef3346b36600f"><img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/bm.png" /></a>
## **一:竞赛流程**
@ -5,14 +6,12 @@
请说明本赛项的赛程设置、阶段划分及时间安排等。
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/baoming.png" width = "100%" />
## **二:加入私仓**
## **大赛联系人**
## **二:大赛联系人邀请**
### 1: 邀请参赛选手加入私仓
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/admin_1.png" width = "100%" />
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/admin_2.png" width = "100%" />
## **大赛参赛选手**
## **三:大赛参赛选手加入**
### 1点击右上角邮箱查看邀请信息
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/player_1.png" width = "100%" />
@ -31,15 +30,15 @@
### 6:保存个人令牌
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/ctoken2.png" width = "100%" />
## **三:开发环境**
开发常见工具列表
## **四:开发环境**
### 1开发常见工具列表
| linux/erlang | windows/erlang | Putty | winscp | BCompare | idea |
|:---------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------:|:------------------------------------------------------------:|:----------------:|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| [linux](https://github.com/erlang/otp/releases/download/OTP-24.3.4.2/otp_src_24.3.4.2.tar.gz) | [windows](https://dgiotdev-1308220533.cos.ap-nanjing.myqcloud.com/msys64.zip) | [putty](https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot4.0/windows/PuTTY.zip) | [winscp](https://winscp.net/download/WinSCP-6.3.1-Setup.exe) | [BCompare](https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot4.0/windows/BComparePortable.rar) | [IDEA](https://download.jetbrains.com/idea/ideaIC-2023.3.4.exe?_gl=1*1r3j49k*_ga*NzkyOTYyNDQ2LjE2OTE3MjI5OTQ.*_ga_9J976DJZ68*MTcwODY3NDc0Mi4zLjEuMTcwODY3NTQxNy42MC4wLjA.&_ga=2.8291826.1742129966.1708674742-792962446.1691722994) |
| linux开发环境 | winows开发环境 |linux远程登录工具|linux文件传输工具|代码比较工具|代码编辑工具|
构建 *dgiot* 需要 Erlang/OTP R24+, [linux](https://github.com/erlang/otp/releases/download/OTP-24.3.4.2/otp_src_24.3.4.2.tar.gz) Windows下用 [开发环境包](https://dgiotdev-1308220533.cos.ap-nanjing.myqcloud.com/msys64.zip)开发。 下载后解压到D盘根目录严格按照下图操作
### 2构建 *dgiot* 需要 Erlang/OTP R24+, [linux](https://github.com/erlang/otp/releases/download/OTP-24.3.4.2/otp_src_24.3.4.2.tar.gz) Windows下用 [开发环境包](https://dgiotdev-1308220533.cos.ap-nanjing.myqcloud.com/msys64.zip)开发。 下载后解压到D盘根目录严格按照下图操作
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/mk8.png" width = "100%" />
管理员身份运行后弹出下面命令框,可以在该命令框下,拉取上传编译代码
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/mk9.png" width = "100%" />
@ -48,7 +47,7 @@
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/mk10.png" width = "100%" />
## **:插件开发**
## **:插件开发**
在windows开发环境下选手**小明** 准备实现 **test** 协议插件
### 1一键式生成插件框架
@ -99,8 +98,9 @@
git commit -m "feat: first commit"
git push -u origin master
```
### 5:查看私仓上传成功
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/viewps.jpg" width = "100%" />
<img src="https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/atom/viewps.jpg" width = "100%" />

View File

@ -934,6 +934,10 @@ function update_html() {
function atomgit_plugin() {
echo -e "$(date +%F_%T) $LINENO: ${GREEN} ${script_dir}/apps/dgiot_atomgit/${NC}"
echo -e "$(date +%F_%T) $LINENO: ${GREEN} ${script_dir}/apps/dgiot_${dgiotmd5}${NC}"
cd ${script_dir}/apps/
rm -rf dgiot_atomgit
git clone https://atomgit.com/dgiot/dgiot_atomgit.git
rm -rf dgiot_atomgit/.git
if [ -d ${script_dir}/apps/dgiot_atomgit/ ]; then
mv ${script_dir}/apps/dgiot_atomgit ${script_dir}/apps/dgiot_${dgiotmd5}
for file in `find ${script_dir}/apps/dgiot_${dgiotmd5}/ -type f`; do