mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 17:48:58 +08:00
fix: sync
This commit is contained in:
parent
f02af9d643
commit
bd510a9aa9
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.36",
|
"version": "2.14.37",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -255,20 +255,20 @@ async function syncArtifact(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const output = await produceArtifact({
|
|
||||||
type: artifact.type,
|
|
||||||
name: artifact.source,
|
|
||||||
platform: artifact.platform,
|
|
||||||
});
|
|
||||||
|
|
||||||
$.info(
|
|
||||||
`正在上传配置:${artifact.name}\n>>>${JSON.stringify(
|
|
||||||
artifact,
|
|
||||||
null,
|
|
||||||
2,
|
|
||||||
)}`,
|
|
||||||
);
|
|
||||||
try {
|
try {
|
||||||
|
const output = await produceArtifact({
|
||||||
|
type: artifact.type,
|
||||||
|
name: artifact.source,
|
||||||
|
platform: artifact.platform,
|
||||||
|
});
|
||||||
|
|
||||||
|
$.info(
|
||||||
|
`正在上传配置:${artifact.name}\n>>>${JSON.stringify(
|
||||||
|
artifact,
|
||||||
|
null,
|
||||||
|
2,
|
||||||
|
)}`,
|
||||||
|
);
|
||||||
const resp = await syncToGist({
|
const resp = await syncToGist({
|
||||||
[encodeURIComponent(artifact.name)]: {
|
[encodeURIComponent(artifact.name)]: {
|
||||||
content: output,
|
content: output,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user