From 8c19fc34bcc5e9e9dbe5e758b803d88de2642376 Mon Sep 17 00:00:00 2001 From: Erik Bigler Date: Sat, 25 Jan 2025 11:38:04 -0700 Subject: [PATCH] feat: add help topic on arm macos gatekeeper install error --- .../commands/handlers/info/topics/arm64.ts | 20 +++++++++++++++++++ .../commands/handlers/info/topics/index.ts | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 src/interactions/commands/handlers/info/topics/arm64.ts diff --git a/src/interactions/commands/handlers/info/topics/arm64.ts b/src/interactions/commands/handlers/info/topics/arm64.ts new file mode 100644 index 0000000..435ba7b --- /dev/null +++ b/src/interactions/commands/handlers/info/topics/arm64.ts @@ -0,0 +1,20 @@ +import { getBaseEmbed, InfoTopic } from '../info-helpers'; + +export const arm64InstallError: InfoTopic = { + name: 'ARM macOS Install Error', + message: { + embeds: [ + getBaseEmbed().setTitle('ARM macOS (Apple Silicon) Install Error') + .setDescription(` +Because we do not notarize the ARM macOS builds of Firebot, you may get an error about the app being damaged or incomplete. This is a security feature of macOS called Gatekeeper. + +To resolve this issue, run the following command in Terminal: +\`\`\`bash +xattr -c /Applications/Firebot.app +\`\`\` + +This command will remove the quarantine attribute from the app and allow it to open. +`), + ], + }, +}; diff --git a/src/interactions/commands/handlers/info/topics/index.ts b/src/interactions/commands/handlers/info/topics/index.ts index 6729d76..33c0cc4 100644 --- a/src/interactions/commands/handlers/info/topics/index.ts +++ b/src/interactions/commands/handlers/info/topics/index.ts @@ -13,6 +13,7 @@ import { obsTroubleShooting } from './obs-troubleshooting'; import { offScreen } from './offscreen'; import { tuts } from './tutorials'; import { InfoTopic } from '../info-helpers'; +import { arm64InstallError } from './arm64'; export const infoTopics: Array = [ authIssues, @@ -29,4 +30,5 @@ export const infoTopics: Array = [ obsTroubleShooting, offScreen, tuts, + arm64InstallError, ];