diff --git a/gui/src/pages/welcome/SetupPage.tsx b/gui/src/pages/welcome/SetupPage.tsx index 10e2136d4a..43cd68979e 100644 --- a/gui/src/pages/welcome/SetupPage.tsx +++ b/gui/src/pages/welcome/SetupPage.tsx @@ -9,6 +9,7 @@ import ImportExtensions from "./setup/ImportExtensions"; import AddToPath from "./setup/AddToPath"; import SignIn from "./setup/SignIn"; import InstallTools from "./setup/InstallTools"; +import { getPlatform } from "@/util"; export default function SetupPage({ onNext }: { onNext: () => void }) { const [currentFeature, setCurrentFeature] = useState(0); @@ -31,7 +32,7 @@ export default function SetupPage({ onNext }: { onNext: () => void }) { } }; - const setupSteps = [ + const allSetupSteps = [ { icon: , title: "Import VSCode Extensions", @@ -44,6 +45,7 @@ export default function SetupPage({ onNext }: { onNext: () => void }) { title: "Add PearAI To Your Path", description: "Easily open PearAI from the command line with 'pearai'.", component: , + platformSpecific: "mac" }, { icon: , @@ -59,6 +61,10 @@ export default function SetupPage({ onNext }: { onNext: () => void }) { }, ]; + const setupSteps = allSetupSteps.filter(step => + !step.platformSpecific || step.platformSpecific === getPlatform() + ); + return (