From d793f37b39cd56a3d4ce02ba462b80a7553304af Mon Sep 17 00:00:00 2001 From: Crxaw <48805031+sitescript@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:00:37 +0000 Subject: [PATCH] Updated Support Helper to support M1+ Chips. (#141) * Updated Support Helper to support M1+ Chips. Updated SupportHelper to support M1+ chips via darwin * Fixed not building * Reverted old support helper file --- src/plugins/_core/supportHelper.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index 2e8564dff..10e4b62ae 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -86,7 +86,11 @@ async function generateDebugInfoMessage() { `v${VERSION} • [${gitHash}]()` + `${SettingsPlugin.additionalInfo} - ${Intl.DateTimeFormat("en-GB", { dateStyle: "medium" }).format(BUILD_TIMESTAMP)}`, Client: `${RELEASE_CHANNEL} ~ ${client}`, - Platform: window.navigator.platform + Platform: `${DiscordNative.process.platform === "darwin" ? + (DiscordNative.process.arch === "arm64" ? "MacSilicon" : "MacIntel") : + DiscordNative.process.platform === "win32" && DiscordNative.process.arch === "x64" ? + "Windows" : + `${DiscordNative.process.platform} ${DiscordNative.process.arch}`}` }; if (IS_DISCORD_DESKTOP) { @@ -96,8 +100,8 @@ async function generateDebugInfoMessage() { const commonIssues = { "NoRPC enabled": Vencord.Plugins.isPluginEnabled("NoRPC"), "Activity Sharing disabled": tryOrElse(() => !ShowCurrentGame.getSetting(), false), - "Equicord DevBuild": !IS_STANDALONE, - "Has UserPlugins": Object.values(PluginMeta).some(m => m.userPlugin), + "Equicord Dev Build": !IS_STANDALONE, + "Has Userplugins": Object.values(PluginMeta).some(m => m.userPlugin), "More than two weeks out of date": BUILD_TIMESTAMP < Date.now() - 12096e5, };