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
This commit is contained in:
Crxaw 2025-02-08 20:00:37 +00:00 committed by GitHub
parent f4f817eaed
commit d793f37b39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,11 @@ async function generateDebugInfoMessage() {
`v${VERSION} • [${gitHash}](<https://github.com/Equicord/Equicord/commit/${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) {
@ -97,7 +101,7 @@ async function generateDebugInfoMessage() {
"NoRPC enabled": Vencord.Plugins.isPluginEnabled("NoRPC"),
"Activity Sharing disabled": tryOrElse(() => !ShowCurrentGame.getSetting(), false),
"Equicord Dev Build": !IS_STANDALONE,
"Has UserPlugins": Object.values(PluginMeta).some(m => m.userPlugin),
"Has Userplugins": Object.values(PluginMeta).some(m => m.userPlugin),
"More than two weeks out of date": BUILD_TIMESTAMP < Date.now() - 12096e5,
};