mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-03 02:53:16 +08:00
feat: Add support for targetPlatform ShadowRocket
This commit is contained in:
@@ -282,6 +282,9 @@ async function syncToGist(files) {
|
||||
async function produceArtifact({ type, name, platform }) {
|
||||
platform = platform || 'JSON';
|
||||
|
||||
// produce Clash node format for ShadowRocket
|
||||
if (platform === 'ShadowRocket') platform = 'Clash';
|
||||
|
||||
if (type === 'subscription') {
|
||||
const allSubs = $.read(SUBS_KEY);
|
||||
const sub = findByName(allSubs, name);
|
||||
|
||||
@@ -51,7 +51,7 @@ async function updateGitHubAvatar() {
|
||||
}
|
||||
|
||||
async function updateArtifactStore() {
|
||||
console.log('Updating artifact store');
|
||||
$.log('Updating artifact store');
|
||||
const settings = $.read(SETTINGS_KEY);
|
||||
const { githubUser, gistToken } = settings;
|
||||
if (githubUser && gistToken) {
|
||||
|
||||
Reference in New Issue
Block a user