feat: Add support for targetPlatform ShadowRocket

This commit is contained in:
Peng-YM
2022-07-11 18:23:56 +08:00
parent 49c8f2e521
commit 848491c0f8
4 changed files with 6 additions and 3 deletions

View File

@@ -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);

View File

@@ -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) {