From d6978b09d7468ddd96da946318b84aaac9827d37 Mon Sep 17 00:00:00 2001
From: dawnwinterLiu <1737801684@qq.com>
Date: Mon, 26 Feb 2024 09:52:49 +0800
Subject: [PATCH] feat:plugin
---
apps/dgiot_atomgit/README.md | 20 ++++++++++----------
dgiot_install.sh | 4 ++++
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/apps/dgiot_atomgit/README.md b/apps/dgiot_atomgit/README.md
index c2099d56..3d85a9cb 100644
--- a/apps/dgiot_atomgit/README.md
+++ b/apps/dgiot_atomgit/README.md
@@ -1,3 +1,4 @@
+
## **一:竞赛流程**
@@ -5,14 +6,12 @@
请说明本赛项的赛程设置、阶段划分及时间安排等。
-## **二:加入私仓**
-
-## **大赛联系人**
+## **二:大赛联系人邀请**
### 1: 邀请参赛选手加入私仓
-## **大赛参赛选手**
+## **三:大赛参赛选手加入**
### 1:点击右上角邮箱查看邀请信息
@@ -31,15 +30,15 @@
### 6:保存个人令牌
-
-## **三:开发环境**
- 开发常见工具列表
+## **四:开发环境**
+ ### 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盘根目录,严格按照下图操作:
管理员身份运行后弹出下面命令框,可以在该命令框下,拉取上传编译代码
@@ -48,7 +47,7 @@
-## **四:插件开发**
+## **五:插件开发**
在windows开发环境下,选手**小明** 准备实现 **test** 协议插件
### 1:一键式生成插件框架
@@ -99,8 +98,9 @@
git commit -m "feat: first commit"
git push -u origin master
```
+
### 5:查看私仓上传成功
-
+
diff --git a/dgiot_install.sh b/dgiot_install.sh
index ccc22923..8a856f54 100755
--- a/dgiot_install.sh
+++ b/dgiot_install.sh
@@ -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