Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

加入定时执行功能? #1

Open
water0012 opened this issue Jul 7, 2020 · 3 comments
Open

加入定时执行功能? #1

water0012 opened this issue Jul 7, 2020 · 3 comments

Comments

@water0012
Copy link

建议加入定时执行功能,典型应该用场景自动更新geosite.dat,如果由定时任务去做的话耦合度太高,跨设备跨系统会很麻烦。

@DuckSoft
Copy link
Member

DuckSoft commented Jul 7, 2020

Good Idea. 应该可以写一个自动更新的插件。
感谢建议。

@ghost
Copy link

ghost commented Jul 7, 2020

等一个跨平台 cron 解决方案

@water0012
Copy link
Author

water0012 commented Jul 18, 2020

跨平台cron方案不太好找的话,是否可以考虑增加一个启动时运行的hook呢?典型场景:启动时运行指定目录的脚本,并给脚本传入参数一些内置变量(比如当前qv2ray根目录 QV_ROOT_PATH ) ,期望在配置框填入的内容如下:

win

 %<QV_ROOT_PATH>%\cmds\update.bat  %<QV_ROOT_PATH>%\vcore/

linux/mac

${QV_ROOT_PATH}/cmds/update.sh ${QV_ROOT_PATH}/vcore

@DuckSoft @U-v-U 用Post-Connecton 的hook似乎也可以实现,只是每次连接切换都执行有些太频繁了,内置变量也有些不够。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants