diff --git a/config/Loon.plugin b/config/Loon.plugin index 52d2e09..5008e30 100644 --- a/config/Loon.plugin +++ b/config/Loon.plugin @@ -9,4 +9,6 @@ hostname=sub.store [Script] -http-request https?:\/\/sub\.store script-path=https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/backend/sub-store.min.js, requires-body=true, timeout=120, tag=Sub-Store \ No newline at end of file +http-request https?:\/\/sub\.store script-path=https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/backend/sub-store.min.js, requires-body=true, timeout=120, tag=Sub-Store + +cron "0 0 * * *" script-path=https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/backend/dist/cron-sync-artifacts.min.js, tag=Sub-Store Sync \ No newline at end of file diff --git a/config/README.md b/config/README.md index dbb7379..d6dcad8 100644 --- a/config/README.md +++ b/config/README.md @@ -1,22 +1,32 @@ # Sub-Store 配置指南 -## 脚本配置: +Sub-Store 依赖于代理 App 的 MITM、重写以及 JavaScript 脚本等功能,**在开始使用前请确保 MITM 证书已经正确配置并信任,MITM、重写、脚本等开关处于开启状态**。 -### 1. Loon +## 一、脚本配置: + +### 1. **Loon** 安装使用[插件](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Loon.plugin)即可。 -### 2. Surge +### 2. **Surge** 安装使用[模块](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Surge.sgmodule)即可。 -### 3. QX -订阅[重写](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/QX.snippet)即可 +### 3. **Quantumult X** +(1) 订阅[重写](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/QX.snippet) -### 4. Stash -安装使用[ Stash 覆写](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Stash.stoverride)即可。 +(2) 编辑配置文件,在 [task_local] 一节下添加: +``` +0 0 1 1 * https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/backend/dist/cron-sync-artifacts.min.js, tag=Sub-Store Sync, enabled=true +``` -### 5. Shadowrocket +### 4. **Stash** +安装使用[ Stash 覆写](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Stash.stoverride) + +### 5. **Shadowrocket** 安装使用[模块](https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Surge.sgmodule)即可。 -## 使用 Sub-Store -1. 使用 Safari 打开这个 https://sub.store 如网页正常打开并且未弹出任何错误提示,说明 Sub-Store 已经配置成功。 -2. 可以把 Sub-Store 添加到主屏幕,即可获得类似于 APP 的使用体验。 -3. 更详细的使用指南请参考[文档](https://www.notion.so/Sub-Store-6259586994d34c11a4ced5c406264b46)。 +## 二、使用 Sub-Store + +(1) 使用 Safari 打开这个 https://sub.store 如网页正常打开并且未弹出任何错误提示,说明 Sub-Store 已经配置成功。 + +(2) 把 Sub-Store 添加到主屏幕,即可获得类似于 APP 的使用体验。 + +(3) 更详细的使用指南请参考[文档](https://www.notion.so/Sub-Store-6259586994d34c11a4ced5c406264b46)。 diff --git a/config/Surge.sgmodule b/config/Surge.sgmodule index 4a44e48..1a913d8 100644 --- a/config/Surge.sgmodule +++ b/config/Surge.sgmodule @@ -5,3 +5,5 @@ hostname=%APPEND% sub.store [Script] Sub-Store = type=http-request,pattern=^https?:\/\/sub\.store,script-path=https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/backend/sub-store.min.js,requires-body=true,timeout=120,max-size=131072 + +Sub-Store Sync = type=cron,cronexp=0 0 * * *,wake-system=1,timeout=120,script-path=https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/backend/dist/cron-sync-artifacts.min.js \ No newline at end of file