From 4df01b1e6231c6dfe51300aea37d14b92f74a652 Mon Sep 17 00:00:00 2001 From: V Date: Fri, 25 Aug 2023 14:33:33 +0200 Subject: [PATCH] ci: fix generatePluginList --- scripts/build/common.mjs | 2 +- scripts/generatePluginList.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index a12e9eeb..8efe2be6 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -138,7 +138,7 @@ export const gitRemotePlugin = { build.onLoad({ filter, namespace: "git-remote" }, async () => { let remote = process.env.VENCORD_REMOTE; if (!remote) { - const res = await promisify(exec)("git remote get-url origin", { encoding: "utf-8" }); + const res = await promisify(exec)("git remote get-url origin", { encoding: "utf-8" }); remote = res.stdout.trim() .replace("https://github.com/", "") .replace("git@github.com:", "") diff --git a/scripts/generatePluginList.ts b/scripts/generatePluginList.ts index ea08d304..2c96e61b 100644 --- a/scripts/generatePluginList.ts +++ b/scripts/generatePluginList.ts @@ -161,7 +161,7 @@ async function parseFile(fileName: string) { const target = getPluginTarget(fileName); if (target) { - if (!["web", "discordDesktop", "vencordDesktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); + if (!["web", "discordDesktop", "vencordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); data.target = target as any; }