From 7246bface3050ebfdcf2371bb7ae90cb05ccf0a4 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 4 Apr 2025 22:59:21 +0200 Subject: [PATCH] update vesktop build target name --- scripts/build/build.mjs | 2 +- scripts/build/common.mjs | 4 ++-- scripts/generatePluginList.ts | 4 ++-- src/components/PluginSettings/index.tsx | 4 ++-- src/modules.d.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index 9c2b49708..0d796ddba 100755 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -184,7 +184,7 @@ const buildConfigs = ([ globalName: "Vencord", sourcemap, plugins: [ - globPlugins("vencordDesktop"), + globPlugins("vesktop"), ...commonRendererPlugins ], define: { diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index 920e59267..9bcbc7f09 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -129,7 +129,7 @@ export const makeAllPackagesExternalPlugin = { }; /** - * @type {(kind: "web" | "discordDesktop" | "vencordDesktop") => import("esbuild").Plugin} + * @type {(kind: "web" | "discordDesktop" | "vesktop") => import("esbuild").Plugin} */ export const globPlugins = kind => ({ name: "glob-plugins", @@ -168,7 +168,7 @@ export const globPlugins = kind => ({ (target === "web" && kind === "discordDesktop") || (target === "desktop" && kind === "web") || (target === "discordDesktop" && kind !== "discordDesktop") || - (target === "vencordDesktop" && kind !== "vencordDesktop"); + (target === "vesktop" && kind !== "vesktop"); if (excluded) { const name = await resolvePluginName(fullDir, file); diff --git a/scripts/generatePluginList.ts b/scripts/generatePluginList.ts index 3d7c16c01..2f7ac7314 100644 --- a/scripts/generatePluginList.ts +++ b/scripts/generatePluginList.ts @@ -39,7 +39,7 @@ interface PluginData { hasCommands: boolean; required: boolean; enabledByDefault: boolean; - target: "discordDesktop" | "vencordDesktop" | "desktop" | "web" | "dev"; + target: "discordDesktop" | "vesktop" | "desktop" | "web" | "dev"; filePath: string; } @@ -163,7 +163,7 @@ async function parseFile(fileName: string) { const target = getPluginTarget(fileName); if (target) { - if (!["web", "discordDesktop", "vencordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); + if (!["web", "discordDesktop", "vesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); data.target = target as any; } diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 371c3082c..27eb10a3b 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -177,10 +177,10 @@ function ExcludedPluginsList({ search }: { search: string; }) { const matchingExcludedPlugins = Object.entries(ExcludedPlugins) .filter(([name]) => name.toLowerCase().includes(search)); - const ExcludedReasons: Record<"web" | "discordDesktop" | "vencordDesktop" | "desktop" | "dev", string> = { + const ExcludedReasons: Record<"web" | "discordDesktop" | "vesktop" | "desktop" | "dev", string> = { desktop: "Discord Desktop app or Vesktop", discordDesktop: "Discord Desktop app", - vencordDesktop: "Vesktop app", + vesktop: "Vesktop app", web: "Vesktop app and the Web version of Discord", dev: "Developer version of Vencord" }; diff --git a/src/modules.d.ts b/src/modules.d.ts index b6e6b2476..082b169de 100644 --- a/src/modules.d.ts +++ b/src/modules.d.ts @@ -25,7 +25,7 @@ declare module "~plugins" { folderName: string; userPlugin: boolean; }>; - export const ExcludedPlugins: Record; + export const ExcludedPlugins: Record; } declare module "~pluginNatives" {