ci: fix generatePluginList

This commit is contained in:
V 2023-08-25 14:33:33 +02:00
parent ebe10d3fad
commit 4df01b1e62
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 2 additions and 2 deletions

View file

@ -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:", "")

View file

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