Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
feat: order -1
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jan 27, 2024
1 parent 738a636 commit 03fc621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ export const writeConfig = async (config: RawSubscription) => {
'utf-8',
);

newConfig.apps?.forEach((app) => {
app.groups?.forEach((g) => {
if (g.name.startsWith('开屏广告')) {
g.order = -1;
}
});
});
// update gkd.json
const buffer = Buffer.from(orderdStringify5(newConfig, sortKeys), 'utf-8');
await fs.writeFile(gkdFp, buffer);
Expand Down
2 changes: 2 additions & 0 deletions src/rawApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ for await (const tsFp of walk(process.cwd() + '/src/apps')) {
appConfig.groups?.forEach((g) => {
if (!g.name.startsWith('开屏广告')) {
g.enable = false;
} else {
g.order = -1;
}
});
rawApps.push(appConfig);
Expand Down

0 comments on commit 03fc621

Please sign in to comment.