Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update README.md
添加自动化脚本运行说明
  • Loading branch information
sanshu-rom authored Jan 3, 2025
commit a6188dfc8bca5a52c06b87524639276523e5d97b
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,20 @@ todo:
## 问题说明

1. windows上直接运行index.js可能会发现运行过程中的日志打印出中文乱码。建议通过yarn dev运行或者在package.json里点击dev脚本运行

## 安装说明

1.zy安装方案
* [多平台安装教程](https://zy.catni.cn/otherShare/drpyS-build.html)

2.自动化安装方案(直接薅道长羊毛)
* 终端执行
bash -c "$(curl -fsSLk https://github.com/hjdhnx/drpy-node/raw/refs/heads/main/autorun.sh)"

* 添加定时方案
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 -
或者下载脚本到本地后
chmod a+x /path/autorun.sh
echo "30 7 * * * bash /path/autorun.sh " >> /path/logfile.log 2>&1" | crontab -

命令说明 /patch 为脚本存放路径(脚本放在与源码同级的自定义目录中)