From 20d958d74f0e44099a3011e290428d4cefe5631f Mon Sep 17 00:00:00 2001 From: K <104524788+Keywos@users.noreply.github.com> Date: Wed, 26 Jul 2023 01:48:47 +0800 Subject: [PATCH 1/3] Update Surge.sgmodule --- config/Surge.sgmodule | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/Surge.sgmodule b/config/Surge.sgmodule index df033f6..6452a1a 100644 --- a/config/Surge.sgmodule +++ b/config/Surge.sgmodule @@ -4,6 +4,7 @@ hostname=%APPEND% sub.store [Script] -Sub-Store=type=http-request,pattern=^https?:\/\/sub\.store,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store.min.js,requires-body=true,ability=http-client-policy +Sub-Store Core=type=http-request,pattern=^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info))),script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js,requires-body=true,timeout=120,ability=http-client-policy +Sub-Store Simple=type=http-request,pattern=^https?:\/\/sub\.store,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js,requires-body=true -Sub-Store Sync=type=cron,cronexp=0 0 * * *,wake-system=1,timeout=120,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js,ability=http-client-policy +Sub-Store Sync=type=cron,cronexp=0 0 * * *,wake-system=1,timeout=120,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js From f7c08e3a565d6a72b56812b9795bd9fc50c0ed5b Mon Sep 17 00:00:00 2001 From: K <704496037@qq.com> Date: Mon, 31 Jul 2023 16:38:07 +0800 Subject: [PATCH 2/3] fixed deleted gist --- backend/src/restful/artifacts.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/restful/artifacts.js b/backend/src/restful/artifacts.js index 2a8af9f..5621a90 100644 --- a/backend/src/restful/artifacts.js +++ b/backend/src/restful/artifacts.js @@ -131,7 +131,12 @@ async function deleteArtifact(req, res) { files[encodeURIComponent(artifact.name)] = { content: '', }; - await syncToGist(files); + // 当别的Sub 删了同步订阅 或 gist里面删了 当前设备没有删除 时 无法删除的bug + try { + await syncToGist(files); + } catch (i) { + $.error(`Function syncToGist: ${name} : ${i}`); + } } // delete local cache deleteByName(allArtifacts, name); From ff71f12996f0d85e1aa80ccdd007b2dd422fd36d Mon Sep 17 00:00:00 2001 From: K <704496037@qq.com> Date: Mon, 31 Jul 2023 16:41:22 +0800 Subject: [PATCH 3/3] version 2.14.3 --- backend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 6623fb0..080e8de 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.2", + "version": "2.14.3", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": {