From 2eab462ed6a748cf49291ad0bca54ecf86a0939d Mon Sep 17 00:00:00 2001 From: k1ngsterr1 Date: Fri, 22 May 2026 21:49:02 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D1=82=D1=8C=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D1=83=20macOS=20=D1=81=20?= =?UTF-8?q?=D1=81=D0=B0=D0=B9=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 6 ++-- .../DownloadCenter/DownloadCenter.tsx | 30 ++++--------------- src/components/SEO/SEO.tsx | 2 +- 3 files changed, 9 insertions(+), 29 deletions(-) diff --git a/index.html b/index.html index 10a02f3..d249db7 100644 --- a/index.html +++ b/index.html @@ -4,14 +4,14 @@ Rosetta - Secure & Private Messaging | End-to-End Encrypted Chat - + - + @@ -34,7 +34,7 @@ "description": "Secure end-to-end encrypted messaging application", "url": "https://rosetta.im", "applicationCategory": "CommunicationApplication", - "operatingSystem": ["Windows", "macOS", "Linux", "Android"], + "operatingSystem": ["Windows", "Linux", "Android"], "offers": { "@type": "Offer", "price": "0", diff --git a/src/components/DownloadCenter/DownloadCenter.tsx b/src/components/DownloadCenter/DownloadCenter.tsx index 3a48575..01e6306 100644 --- a/src/components/DownloadCenter/DownloadCenter.tsx +++ b/src/components/DownloadCenter/DownloadCenter.tsx @@ -5,13 +5,12 @@ import { Flex, Text, Title, - useComputedColorScheme, useMantineTheme, } from '@mantine/core'; import classes from './DownloadCenter.module.css'; import { RosettaLogo } from '../RosettaLogo/RosettaLogo'; import { useEffect, useState } from 'react'; -import { FaApple, FaWindows } from 'react-icons/fa'; +import { FaWindows } from 'react-icons/fa'; import { FcAndroidOs, FcLinux } from 'react-icons/fc'; import { Switch } from '../Switch/Switch'; import { IconDownload } from '@tabler/icons-react'; @@ -41,7 +40,7 @@ const fetchUpdates = async (): Promise => { version: item.version, link: new URL(item.downloadUrl, 'https://sdu.rosetta.im').toString(), })).sort((a, b) => { - const platformOrder = ['darwin', 'linux', 'win32', 'android']; + const platformOrder = ['linux', 'win32', 'android']; const archOrder = ['arm64', 'x64', 'universal'] const platformComparison = platformOrder.indexOf(a.platform) - platformOrder.indexOf(b.platform); if (platformComparison !== 0) { @@ -57,9 +56,8 @@ const fetchUpdates = async (): Promise => { export function DownloadCenter() { const theme = useMantineTheme(); - const colorScheme = useComputedColorScheme(); const [kernels, setKernels] = useState([]); - const [targetPlatforms, setTargetPlatforms] = useState(['darwin', 'linux', 'win32', 'android']); + const [targetPlatforms, setTargetPlatforms] = useState(['linux', 'win32', 'android']); useEffect(() => { fetchUpdates().then(setKernels); @@ -69,14 +67,11 @@ export function DownloadCenter() { let targetPlatforms: string[] = []; switch(value){ case 'All': - targetPlatforms = ['darwin', 'linux', 'win32', 'android']; + targetPlatforms = ['linux', 'win32', 'android']; break; case 'Windows': targetPlatforms = ['win32']; break; - case 'macOS': - targetPlatforms = ['darwin']; - break; case 'Android': targetPlatforms = ['android']; break; @@ -89,8 +84,6 @@ export function DownloadCenter() { const translatePlatformToOsName = (platform: string) => { switch(platform){ - case 'darwin': - return 'macOS'; case 'linux': return 'Linux'; case 'win32': @@ -104,8 +97,6 @@ export function DownloadCenter() { const translatePlatformAndArchToCpuName = (platform : string, arch: string) => { switch(platform){ - case 'darwin': - return arch === 'arm64' ? 'Apple Silicon' : 'Intel'; case 'linux': return arch === 'arm64' ? 'ARM64' : 'x64'; case 'win32': @@ -121,9 +112,6 @@ export function DownloadCenter() { const features = kernels.filter((v) => targetPlatforms.includes(v.platform)).map((feature) => ( - {feature.platform === 'darwin' && } {feature.platform === 'linux' && } {feature.platform === 'win32' && } {feature.platform === 'android' && } @@ -131,14 +119,6 @@ export function DownloadCenter() { {translatePlatformToOsName(feature.platform)} - {translatePlatformAndArchToCpuName(feature.platform, feature.arch)} - {feature.platform == 'darwin' && <> - {feature.arch == 'arm64' && <> - Download this version if you have a Mac with Apple Silicon (M1, M2 chips). - } - {feature.arch == 'x64' && <> - Download this version if you have a Mac with an Intel processor, which was most likely manufactured before 2020. - } - } {feature.platform == 'linux' && <>This version is for Linux and comes as an AppImage for the GUI versions.} {feature.platform == 'win32' && <>Download this version of you have computer on Windows 10 or later.} {feature.platform == 'android' && <>This version is for Android devices and all architectures.} @@ -165,7 +145,7 @@ export function DownloadCenter() { - + diff --git a/src/components/SEO/SEO.tsx b/src/components/SEO/SEO.tsx index 5380423..62e3e49 100644 --- a/src/components/SEO/SEO.tsx +++ b/src/components/SEO/SEO.tsx @@ -9,7 +9,7 @@ interface SEOProps { export function SEO({ title = 'Rosetta - Secure Messaging for Everyone', - description = 'End-to-end encrypted messaging app with military-grade security. Download for macOS, Windows, Linux.', + description = 'End-to-end encrypted messaging app with military-grade security. Download for Windows, Linux, and Android.', ogImage = '/og-image.png', keywords = 'secure messaging, encrypted chat, private messenger' }: SEOProps) {