aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-08-25 14:33:33 +0200
committerV <vendicated@riseup.net>2023-08-25 14:33:33 +0200
commit4df01b1e6231c6dfe51300aea37d14b92f74a652 (patch)
treebbbd1b5da2ac9093643328c9b9d105eb8d52f1cf
parentebe10d3fad85fc46b7df1637807734d950cd70bb (diff)
downloadVencord-4df01b1e6231c6dfe51300aea37d14b92f74a652.tar.gz
Vencord-4df01b1e6231c6dfe51300aea37d14b92f74a652.tar.bz2
Vencord-4df01b1e6231c6dfe51300aea37d14b92f74a652.zip
ci: fix generatePluginList
-rw-r--r--scripts/build/common.mjs2
-rw-r--r--scripts/generatePluginList.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs
index a12e9ee..8efe2be 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 ea08d30..2c96e61 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;
}