Skip to content

Commit 357d553

Browse files
authored
Merge pull request #18 from sanshu-rom/main
优化自动化脚本显示,添加自动化安装说明
2 parents ef5eba2 + b007037 commit 357d553

File tree

2 files changed

+147
-112
lines changed

2 files changed

+147
-112
lines changed

Diff for: README.md

+22
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,25 @@ todo:
5454
## 问题说明
5555

5656
1. windows上直接运行index.js可能会发现运行过程中的日志打印出中文乱码。建议通过yarn dev运行或者在package.json里点击dev脚本运行
57+
58+
## 安装说明
59+
60+
1.zy安装方案
61+
* [多平台安装教程](https://zy.catni.cn/otherShare/drpyS-build.html)
62+
63+
2.自动化安装方案(直接薅道长羊毛)
64+
* 终端执行
65+
66+
bash -c "$(curl -fsSLk https://github.com/hjdhnx/drpy-node/raw/refs/heads/main/autorun.sh)"
67+
68+
* 添加定时方案
69+
70+
echo "30 7 * * * bash -c \"\$(curl -fsSLk https://github.com/hjdhnx/drpy-node/raw/refs/heads/main/autorun.sh)\"" >> /path/logfile.log 2>&1" | crontab -
71+
72+
或者下载脚本到本地后
73+
74+
chmod a+x /path/autorun.sh
75+
76+
echo "30 7 * * * bash /path/autorun.sh >> /path/logfile.log 2>&1" | crontab -
77+
78+
命令说明 /patch 为脚本存放路径(脚本放在与源码同级的自定义目录中)

0 commit comments

Comments
 (0)