mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-05-10 17:35:50 +02:00
update vesktop build target name
This commit is contained in:
parent
8d0256bde8
commit
7246bface3
5 changed files with 8 additions and 8 deletions
|
@ -184,7 +184,7 @@ const buildConfigs = ([
|
||||||
globalName: "Vencord",
|
globalName: "Vencord",
|
||||||
sourcemap,
|
sourcemap,
|
||||||
plugins: [
|
plugins: [
|
||||||
globPlugins("vencordDesktop"),
|
globPlugins("vesktop"),
|
||||||
...commonRendererPlugins
|
...commonRendererPlugins
|
||||||
],
|
],
|
||||||
define: {
|
define: {
|
||||||
|
|
|
@ -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 => ({
|
export const globPlugins = kind => ({
|
||||||
name: "glob-plugins",
|
name: "glob-plugins",
|
||||||
|
@ -168,7 +168,7 @@ export const globPlugins = kind => ({
|
||||||
(target === "web" && kind === "discordDesktop") ||
|
(target === "web" && kind === "discordDesktop") ||
|
||||||
(target === "desktop" && kind === "web") ||
|
(target === "desktop" && kind === "web") ||
|
||||||
(target === "discordDesktop" && kind !== "discordDesktop") ||
|
(target === "discordDesktop" && kind !== "discordDesktop") ||
|
||||||
(target === "vencordDesktop" && kind !== "vencordDesktop");
|
(target === "vesktop" && kind !== "vesktop");
|
||||||
|
|
||||||
if (excluded) {
|
if (excluded) {
|
||||||
const name = await resolvePluginName(fullDir, file);
|
const name = await resolvePluginName(fullDir, file);
|
||||||
|
|
|
@ -39,7 +39,7 @@ interface PluginData {
|
||||||
hasCommands: boolean;
|
hasCommands: boolean;
|
||||||
required: boolean;
|
required: boolean;
|
||||||
enabledByDefault: boolean;
|
enabledByDefault: boolean;
|
||||||
target: "discordDesktop" | "vencordDesktop" | "desktop" | "web" | "dev";
|
target: "discordDesktop" | "vesktop" | "desktop" | "web" | "dev";
|
||||||
filePath: string;
|
filePath: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ async function parseFile(fileName: string) {
|
||||||
|
|
||||||
const target = getPluginTarget(fileName);
|
const target = getPluginTarget(fileName);
|
||||||
if (target) {
|
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;
|
data.target = target as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -177,10 +177,10 @@ function ExcludedPluginsList({ search }: { search: string; }) {
|
||||||
const matchingExcludedPlugins = Object.entries(ExcludedPlugins)
|
const matchingExcludedPlugins = Object.entries(ExcludedPlugins)
|
||||||
.filter(([name]) => name.toLowerCase().includes(search));
|
.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",
|
desktop: "Discord Desktop app or Vesktop",
|
||||||
discordDesktop: "Discord Desktop app",
|
discordDesktop: "Discord Desktop app",
|
||||||
vencordDesktop: "Vesktop app",
|
vesktop: "Vesktop app",
|
||||||
web: "Vesktop app and the Web version of Discord",
|
web: "Vesktop app and the Web version of Discord",
|
||||||
dev: "Developer version of Vencord"
|
dev: "Developer version of Vencord"
|
||||||
};
|
};
|
||||||
|
|
2
src/modules.d.ts
vendored
2
src/modules.d.ts
vendored
|
@ -25,7 +25,7 @@ declare module "~plugins" {
|
||||||
folderName: string;
|
folderName: string;
|
||||||
userPlugin: boolean;
|
userPlugin: boolean;
|
||||||
}>;
|
}>;
|
||||||
export const ExcludedPlugins: Record<string, "web" | "discordDesktop" | "vencordDesktop" | "desktop" | "dev">;
|
export const ExcludedPlugins: Record<string, "web" | "discordDesktop" | "vesktop" | "desktop" | "dev">;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "~pluginNatives" {
|
declare module "~pluginNatives" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue