A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
Mac: new version in the notch, one click to install it
Claude5e2b8af3de96
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex b451e949..48406851 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -45,6 +45,9 @@ jobs:- name: Test WhatsApp (gateway payloads, signatures, inbox, filters)run: bash scripts/test-whatsapp.sh+ - name: Test Mac update (releases, versions, where it may replace itself)+ run: bash scripts/test-mac-update.sh+- name: Desktop Mochi and gaze testsrun: bash scripts/test-desktop-mochi.shdiff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstringsindex 7fb593a5..36ce228c 100644--- a/NotchBuddy/Resources/Localizable.xcstrings+++ b/NotchBuddy/Resources/Localizable.xcstrings@@ -1,6 +1,1891 @@{"sourceLanguage" : "en","strings" : {+ "update.ask.body" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "يتحقق Mochi من إصدارات Coucou على GitHub بضع مرات يوميًا ويخبرك عند صدور إصدار جديد. لا يُرسَل أي شيء عنك."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi দিনে কয়েকবার GitHub-এ Coucou-র রিলিজ দেখে এবং নতুন এলে জানায়। আপনার সম্পর্কে কিছুই পাঠানো হয় না।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi checks Coucou’s releases on GitHub a few times a day and tells you when one is out. Nothing about you is sent."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi revisa las versiones de Coucou en GitHub unas veces al día y te avisa cuando sale una. No se envía nada sobre ti."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi regarde les versions de Coucou sur GitHub quelques fois par jour et te prévient quand il y en a une. Rien sur toi n’est envoyé."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi दिन में कुछ बार GitHub पर Coucou के रिलीज़ देखता है और नया आने पर बताता है। आपके बारे में कुछ नहीं भेजा जाता।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi memeriksa rilis Coucou di GitHub beberapa kali sehari dan memberi tahu saat ada yang baru. Tidak ada data tentangmu yang dikirim."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Mochi verifica as versões do Coucou no GitHub algumas vezes por dia e avisa quando sai uma. Nada sobre você é enviado."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi несколько раз в день проверяет релизы Coucou на GitHub и сообщает о новых. О вас ничего не отправляется."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mochi 每天会在 GitHub 上查看几次 Coucou 的版本,有新版本时告诉你。不会发送任何关于你的信息。"+ }+ }+ }+ },+ "update.ask.no" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "لا، شكرًا"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "না, ধন্যবাদ"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No thanks"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No, gracias"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non merci"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "नहीं, धन्यवाद"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tidak, terima kasih"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não, obrigado"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Нет, спасибо"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "不用了"+ }+ }+ }+ },+ "update.ask.title" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "هل تريد تلقي الإصدارات الجديدة في النوتش؟"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "নতুন সংস্করণ নচে পেতে চান?"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Get new versions from the notch?"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "¿Recibir las nuevas versiones en el notch?"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Recevoir les nouvelles versions dans le notch ?"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "नए वर्ज़न नॉच में पाएँ?"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Dapatkan versi baru dari notch?"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Receber as novas versões no notch?"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Получать новые версии прямо в вырезе?"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在刘海里获取新版本?"+ }+ }+ }+ },+ "update.ask.yes" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "نعم، أخبرني"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "হ্যাঁ, জানাও"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Yes, tell me"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sí, avísame"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Oui, préviens-moi"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "हाँ, बताओ"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ya, beri tahu saya"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sim, me avise"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Да, сообщать"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "好的,提醒我"+ }+ }+ }+ },+ "update.downloading" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "جارٍ التنزيل من GitHub…"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub থেকে ডাউনলোড হচ্ছে…"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Downloading from GitHub…"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Descargando desde GitHub…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Téléchargement depuis GitHub…"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub से डाउनलोड हो रहा है…"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mengunduh dari GitHub…"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Baixando do GitHub…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Загрузка с GitHub…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在从 GitHub 下载…"+ }+ }+ }+ },+ "update.error.download" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "فشل التنزيل. حاول مجددًا أو احصل عليه من GitHub."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ডাউনলোড ব্যর্থ। আবার চেষ্টা করুন, অথবা GitHub থেকে নিন।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "The download failed. Try again, or get it on GitHub."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La descarga falló. Inténtalo de nuevo o descárgala en GitHub."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Le téléchargement a échoué. Réessaie, ou récupère-la sur GitHub."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "डाउनलोड नहीं हुआ। फिर कोशिश करें, या GitHub से लें।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Unduhan gagal. Coba lagi, atau ambil di GitHub."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O download falhou. Tente de novo ou baixe no GitHub."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Загрузка не удалась. Попробуйте снова или скачайте на GitHub."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "下载失败。请重试,或前往 GitHub 获取。"+ }+ }+ }+ },+ "update.error.not-coucou" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "الملف المنزَّل ليس إصدار Coucou المُعلَن. لم يتغير شيء."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ডাউনলোডটি ঘোষিত Coucou সংস্করণ নয়। কিছুই বদলানো হয়নি।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "The download isn’t the announced version of Coucou. Nothing was changed."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La descarga no es la versión anunciada de Coucou. No se cambió nada."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Le téléchargement n’est pas la version de Coucou annoncée. Rien n’a été modifié."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "डाउनलोड Coucou का घोषित वर्ज़न नहीं है। कुछ नहीं बदला गया।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Unduhan bukan versi Coucou yang diumumkan. Tidak ada yang diubah."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O download não é a versão anunciada do Coucou. Nada foi alterado."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Загрузка — не объявленная версия Coucou. Ничего не изменено."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "下载的不是公布的 Coucou 版本。未做任何更改。"+ }+ }+ }+ },+ "update.error.restart" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "تم التثبيت: أغلق Coucou وأعد فتحه لاستخدام الإصدار الجديد."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ইনস্টল হয়েছে: নতুন সংস্করণ ব্যবহার করতে Coucou বন্ধ করে আবার খুলুন।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installed: quit and reopen Coucou to use the new version."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalada: cierra y vuelve a abrir Coucou para usar la nueva versión."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installée : quitte et rouvre Coucou pour utiliser la nouvelle version."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "इंस्टॉल हो गया: नया वर्ज़न इस्तेमाल करने के लिए Coucou बंद करके फिर खोलें।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Terpasang: tutup lalu buka lagi Coucou untuk memakai versi baru."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalada: feche e abra o Coucou de novo para usar a nova versão."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Установлено: перезапустите Coucou, чтобы использовать новую версию."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装:退出并重新打开 Coucou 即可使用新版本。"+ }+ }+ }+ },+ "update.error.signature" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "الملف المنزَّل غير موقَّع وموثَّق من مطوّر Coucou، لذا لم يُثبَّت."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ডাউনলোডটি Coucou-র ডেভেলপারের স্বাক্ষরিত ও নোটারাইজড নয়, তাই ইনস্টল করা হয়নি।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "The download isn’t signed and notarized by Coucou’s developer, so it wasn’t installed."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La descarga no está firmada y notarizada por el desarrollador de Coucou, así que no se instaló."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Le téléchargement n’est pas signé et notarisé par le développeur de Coucou : il n’a pas été installé."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "डाउनलोड पर Coucou के डेवलपर का सिग्नेचर और नोटराइज़ेशन नहीं है, इसलिए इंस्टॉल नहीं किया गया।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Unduhan tidak ditandatangani dan dinotarisasi oleh pengembang Coucou, jadi tidak dipasang."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O download não está assinado e notarizado pelo desenvolvedor do Coucou, então não foi instalado."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Загрузка не подписана и не нотаризована разработчиком Coucou, поэтому не установлена."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "下载的文件未经 Coucou 开发者签名和公证,因此未安装。"+ }+ }+ }+ },+ "update.error.unzip" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "تعذّر فتح الملف المنزَّل. لم يتغير شيء."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ডাউনলোড খোলা যায়নি। কিছুই বদলানো হয়নি।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "The download couldn’t be opened. Nothing was changed."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se pudo abrir la descarga. No se cambió nada."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Le téléchargement n’a pas pu être ouvert. Rien n’a été modifié."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "डाउनलोड खुल नहीं सका। कुछ नहीं बदला गया।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Unduhan tidak bisa dibuka. Tidak ada yang diubah."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível abrir o download. Nada foi alterado."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось открыть загрузку. Ничего не изменено."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法打开下载的文件。未做任何更改。"+ }+ }+ }+ },+ "update.failed" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "لم يكتمل التحديث"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "আপডেট সম্পন্ন হয়নি"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "The update didn’t go through"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La actualización no se completó"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "La mise à jour n’a pas abouti"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "अपडेट पूरा नहीं हुआ"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Pembaruan tidak berhasil"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "A atualização não foi concluída"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Обновление не удалось"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "更新未完成"+ }+ }+ }+ },+ "update.installing" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "جارٍ التثبيت…"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ইনস্টল হচ্ছে…"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installing…"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalando…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installation…"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "इंस्टॉल हो रहा है…"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Memasang…"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalando…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Установка…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在安装…"+ }+ }+ }+ },+ "update.later" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "لاحقًا"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "পরে"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Later"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Más tarde"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Plus tard"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "बाद में"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nanti"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Depois"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Позже"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "稍后"+ }+ }+ }+ },+ "update.manual" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou ليس في مجلد التطبيقات، لذا لا يمكنه استبدال نفسه: احصل على الإصدار الجديد من GitHub."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou আপনার Applications ফোল্ডারে নেই, তাই নিজেকে বদলাতে পারে না: নতুন সংস্করণ GitHub থেকে নিন।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou isn’t in your Applications folder, so it can’t replace itself: get the new version on GitHub."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou no está en tu carpeta Aplicaciones, así que no puede reemplazarse: descarga la nueva versión en GitHub."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou n’est pas dans ton dossier Applications, il ne peut donc pas se remplacer : récupère la nouvelle version sur GitHub."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou आपके Applications फ़ोल्डर में नहीं है, इसलिए खुद को बदल नहीं सकता: नया वर्ज़न GitHub से लें।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou tidak ada di folder Aplikasi, jadi tidak bisa mengganti dirinya: ambil versi baru di GitHub."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Coucou não está na sua pasta Aplicativos, então não pode se substituir: baixe a nova versão no GitHub."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou не в папке «Программы», поэтому не может заменить себя: скачайте новую версию на GitHub."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou 不在“应用程序”文件夹中,无法自行替换:请在 GitHub 上获取新版本。"+ }+ }+ }+ },+ "update.menu %@" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "تحديث Coucou إلى %@…"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@-এ আপডেট করুন…"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Update Coucou to %@…"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Actualizar Coucou a la %@…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mettre à jour Coucou vers la %@…"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou को %@ पर अपडेट करें…"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Perbarui Coucou ke %@…"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Atualizar o Coucou para a %@…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Обновить Coucou до %@…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "将 Coucou 更新到 %@…"+ }+ }+ }+ },+ "update.now" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "التحديث الآن"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "এখনই আপডেট"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Update now"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Actualizar ahora"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mettre à jour"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "अभी अपडेट करें"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Perbarui sekarang"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Atualizar agora"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Обновить"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "立即更新"+ }+ }+ }+ },+ "update.open-github" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "فتح GitHub"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub খুলুন"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Get it on GitHub"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Abrir GitHub"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ouvrir GitHub"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub खोलें"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Buka GitHub"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Abrir o GitHub"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Открыть GitHub"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "前往 GitHub"+ }+ }+ }+ },+ "update.relaunching" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "جارٍ إعادة تشغيل Coucou…"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou আবার চালু হচ্ছে…"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Restarting Coucou…"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Reiniciando Coucou…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Redémarrage de Coucou…"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou फिर से शुरू हो रहा है…"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Memulai ulang Coucou…"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Reiniciando o Coucou…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Перезапуск Coucou…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在重启 Coucou…"+ }+ }+ }+ },+ "update.settings.check" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "التحقق الآن"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "এখনই দেখুন"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Check now"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Comprobar ahora"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vérifier maintenant"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "अभी जाँचें"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Periksa sekarang"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Verificar agora"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Проверить сейчас"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "立即检查"+ }+ }+ }+ },+ "update.settings.footer" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "يتحقق Coucou من إصداراته على GitHub بضع مرات يوميًا. لا يُثبَّت أي تحديث إلا بعد نقرتك، وبعد التحقق من توقيع Apple وتوثيقها."+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou দিনে কয়েকবার GitHub-এ নিজের রিলিজ দেখে। আপনার ক্লিকের পরে, Apple-এর স্বাক্ষর ও নোটারাইজেশন যাচাই করেই কেবল আপডেট ইনস্টল হয়।"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou looks at its own releases on GitHub a few times a day. An update is installed only after your click, once Apple’s signature and notarization check out."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou revisa sus propias versiones en GitHub unas veces al día. Una actualización solo se instala tras tu clic, después de verificar la firma y la notarización de Apple."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou regarde ses propres versions sur GitHub quelques fois par jour. Une mise à jour ne s’installe qu’après ton clic, une fois la signature et la notarisation Apple vérifiées."+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou दिन में कुछ बार GitHub पर अपने रिलीज़ देखता है। अपडेट सिर्फ़ आपके क्लिक के बाद, Apple का सिग्नेचर और नोटराइज़ेशन जाँचकर ही इंस्टॉल होता है।"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou memeriksa rilisnya sendiri di GitHub beberapa kali sehari. Pembaruan hanya dipasang setelah kamu klik, setelah tanda tangan dan notarisasi Apple diperiksa."+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Coucou verifica as próprias versões no GitHub algumas vezes por dia. Uma atualização só é instalada depois do seu clique, após conferir a assinatura e a notarização da Apple."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou несколько раз в день проверяет свои релизы на GitHub. Обновление устанавливается только после вашего нажатия и проверки подписи и нотаризации Apple."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou 每天会在 GitHub 上查看几次自己的版本。只有在你点击后、并验证 Apple 签名和公证后才会安装更新。"+ }+ }+ }+ },+ "update.settings.install %@" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "تثبيت %@"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@ ইনস্টল করুন"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Install %@"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalar la %@"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installer la %@"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@ इंस्टॉल करें"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Pasang %@"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalar a %@"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Установить %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装 %@"+ }+ }+ }+ },+ "update.settings.title" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "التحديثات"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "আপডেট"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Updates"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Actualizaciones"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mises à jour"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "अपडेट"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Pembaruan"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Atualizações"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Обновления"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "更新"+ }+ }+ }+ },+ "update.settings.toggle" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "أخبرني عند صدور إصدار جديد"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "নতুন সংস্করণ এলে জানাও"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tell me when a new version is out"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Avisarme cuando salga una nueva versión"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Me prévenir quand une nouvelle version sort"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "नया वर्ज़न आने पर बताएँ"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Beri tahu saya saat ada versi baru"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Me avisar quando sair uma nova versão"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Сообщать о выходе новой версии"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "有新版本时提醒我"+ }+ }+ }+ },+ "update.settings.unreachable" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "تعذّر الوصول إلى GitHub"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub-এ পৌঁছানো যায়নি"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Couldn’t reach GitHub"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se pudo contactar con GitHub"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub ne répond pas"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "GitHub से संपर्क नहीं हो सका"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tidak dapat menghubungi GitHub"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não foi possível acessar o GitHub"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не удалось связаться с GitHub"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法连接 GitHub"+ }+ }+ }+ },+ "update.title %@" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "صدر Coucou %@"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@ এসে গেছে"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@ is out"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ya salió Coucou %@"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@ est sorti"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@ आ गया है"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@ sudah rilis"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Saiu o Coucou %@"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Вышел Coucou %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou %@ 已发布"+ }+ }+ }+ },+ "update.up-to-date" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou محدَّث"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou হালনাগাদ আছে"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou is up to date"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou está actualizado"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou est à jour"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou अप-टू-डेट है"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou sudah terbaru"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Coucou está atualizado"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou обновлён"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Coucou 已是最新版本"+ }+ }+ }+ },+ "update.verifying" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "جارٍ التحقق من التوقيع…"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "স্বাক্ষর যাচাই হচ্ছে…"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Checking the signature…"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Comprobando la firma…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vérification de la signature…"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "सिग्नेचर जाँचा जा रहा है…"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Memeriksa tanda tangan…"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Verificando a assinatura…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Проверка подписи…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在验证签名…"+ }+ }+ }+ },+ "update.whats-new" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "ما الجديد"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "নতুন কী"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "What’s new"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Novedades"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nouveautés"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "क्या नया है"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Yang baru"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Novidades"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Что нового"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "新功能"+ }+ }+ }+ },+ "update.you-have %@" : {+ "extractionState" : "manual",+ "localizations" : {+ "ar" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "لديك %@"+ }+ },+ "bn" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "আপনার কাছে %@"+ }+ },+ "en" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "You have %@"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tienes la %@"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tu as la %@"+ }+ },+ "hi" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "आपके पास %@ है"+ }+ },+ "id" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kamu punya %@"+ }+ },+ "pt-BR" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Você tem a %@"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "У вас %@"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "当前版本 %@"+ }+ }+ }+ },"whatsapp.advanced" : {"extractionState" : "manual","localizations" : {diff --git a/NotchBuddy/Sources/App/AppDelegate.swift b/NotchBuddy/Sources/App/AppDelegate.swiftindex cb34d554..0b7ed236 100644--- a/NotchBuddy/Sources/App/AppDelegate.swift+++ b/NotchBuddy/Sources/App/AppDelegate.swift@@ -6,6 +6,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate {var statusItem: NSStatusItem?private(set) var islandController: IslandWindowController?private var demoMenuItem: NSMenuItem?+ #if !APPSTORE+ /// "Update Coucou to 0.6.0…", shown only when a new version is out.+ private var updateMenuItem: NSMenuItem?+ #endiffunc applicationWillTerminate(_ notification: Notification) {#if !APPSTORE@@ -113,6 +117,12 @@ final class AppDelegate: NSObject, NSApplicationDelegate {menu.addItem(demoItem)menu.addItem(.separator())menu.addItem(withTitle: NSLocalizedString("Open Coucou", comment: ""), action: #selector(openIsland), keyEquivalent: "")+ #if !APPSTORE+ let updateItem = NSMenuItem(title: "", action: #selector(openUpdate), keyEquivalent: "")+ updateItem.isHidden = true+ updateMenuItem = updateItem+ menu.addItem(updateItem)+ #endifmenu.addItem(.separator())menu.addItem(withTitle: NSLocalizedString("Weekly recap", comment: ""), action: #selector(openWeeklyRecap), keyEquivalent: "")#if !APPSTORE@@ -142,6 +152,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate {}#if !APPSTORE+ @objc private func openUpdate() {+ MacUpdater.shared.show()+ }+@objc private func openFlowHub() {if AppState.shared.mode == .expanded { islandController?.collapse() }FlowHubController.shared.show(.dictation)@@ -295,6 +309,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {_ = SpotifyController.sharedMailController.shared.start()WhatsAppController.shared.start()+ MacUpdater.shared.start()#endifCryptoController.shared.start()PortfolioController.shared.start()@@ -308,5 +323,13 @@ extension AppDelegate: NSMenuDelegate {demoMenuItem?.title = DemoEngine.shared.isActive? NSLocalizedString("demo.stop", comment: ""): NSLocalizedString("Demo mode", comment: "")+ #if !APPSTORE+ if let r = MacUpdater.shared.latest, MacUpdate.isNewer(r.version, than: MacUpdater.currentVersion) {+ updateMenuItem?.title = String(format: String(localized: "update.menu %@"), r.version)+ updateMenuItem?.isHidden = false+ } else {+ updateMenuItem?.isHidden = true+ }+ #endif}}diff --git a/NotchBuddy/Sources/App/IslandViewContent.swift b/NotchBuddy/Sources/App/IslandViewContent.swiftindex 18e3f695..eb7b424e 100644--- a/NotchBuddy/Sources/App/IslandViewContent.swift+++ b/NotchBuddy/Sources/App/IslandViewContent.swift@@ -45,6 +45,12 @@ struct IslandViewContent: View {#elseEmptyView()#endif+ case .update:+ #if !APPSTORE+ UpdateCardView()+ #else+ EmptyView()+ #endif}}}diff --git a/NotchBuddy/Sources/App/MacUpdate.swift b/NotchBuddy/Sources/App/MacUpdate.swiftnew file mode 100644index 00000000..27d63b26--- /dev/null+++ b/NotchBuddy/Sources/App/MacUpdate.swift@@ -0,0 +1,118 @@+import Foundation++// Coucou's own releases on GitHub, for "New version" in the notch (GitHub build only; the App+// Store updates its own build). Pure Foundation so tests/MacUpdateTests.swift checks the rules:+// which release is the Mac's, whether it is newer, what to say about it. The Mac's tags are+// `vX.Y.Z` with a `Coucou.zip`; Windows, Linux and Android have their own prefixed tags.++enum MacUpdate {+ static let owner = "Louis-CFM"+ static let repo = "coucou"+ static let releasesURL = URL(string: "https://api.github.com/repos/\(owner)/\(repo)/releases?per_page=20")!+ /// What the downloaded app must be signed as: Coucou's bundle id, Louis's Developer ID team.+ static let bundleId = "fr.louisraille.NotchBuddy"+ static let teamId = "256AUJ9555"+ static var codeRequirement: String {+ "anchor apple generic and identifier \"\(bundleId)\" and certificate leaf[subject.OU] = \"\(teamId)\""+ }++ struct Release: Equatable, Sendable {+ let version: String+ let tag: String+ let zipURL: URL+ let size: Int+ let pageURL: URL+ /// The first "What's new" line, without its Markdown ("WhatsApp in one click").+ let headline: String?+ }++ /// The newest published Mac release in `GET /releases`.+ static func latest(_ data: Data) -> Release? {+ guard let list = (try? JSONSerialization.jsonObject(with: data)) as? [[String: Any]] else { return nil }+ let releases: [Release] = list.compactMap { r in+ guard r["draft"] as? Bool != true, r["prerelease"] as? Bool != true,+ let tag = r["tag_name"] as? String, let version = macVersion(tag),+ let assets = r["assets"] as? [[String: Any]],+ let zip = assets.first(where: { $0["name"] as? String == "Coucou.zip" }),+ let s = zip["browser_download_url"] as? String, let url = URL(string: s),+ let page = (r["html_url"] as? String).flatMap(URL.init(string:)) else { return nil }+ return Release(version: version, tag: tag, zipURL: url, size: (zip["size"] as? Int) ?? 0,+ pageURL: page, headline: headline(r["body"] as? String))+ }+ return releases.max { isNewer($1.version, than: $0.version) }+ }++ /// "v0.5.1" → "0.5.1"; "windows-v0.5.0", "linux-latest", "android-v0.2.0" → nil.+ static func macVersion(_ tag: String) -> String? {+ guard tag.hasPrefix("v") else { return nil }+ let v = String(tag.dropFirst())+ let parts = v.split(separator: ".")+ guard (2...4).contains(parts.count), parts.allSatisfy({ !$0.isEmpty && $0.allSatisfy(\.isNumber) }) else { return nil }+ return v+ }++ /// Numeric comparison: 0.10.0 is newer than 0.9.3, 0.5.1 than 0.5.+ static func isNewer(_ a: String, than b: String) -> Bool {+ let x = a.split(separator: ".").map { Int($0) ?? 0 }, y = b.split(separator: ".").map { Int($0) ?? 0 }+ for i in 0..<max(x.count, y.count) {+ let l = i < x.count ? x[i] : 0, r = i < y.count ? y[i] : 0+ if l != r { return l > r }+ }+ return false+ }++ /// The bold part of the first bullet under "## What's new", else the bullet's start.+ static func headline(_ body: String?) -> String? {+ guard let body else { return nil }+ let lines = body.components(separatedBy: .newlines)+ guard let start = lines.firstIndex(where: { $0.trimmingCharacters(in: .whitespaces).lowercased().hasPrefix("## what") }) else { return nil }+ for line in lines[(start + 1)...] {+ let t = line.trimmingCharacters(in: .whitespaces)+ if t.hasPrefix("## ") { break }+ guard t.hasPrefix("- ") || t.hasPrefix("* ") else { continue }+ let item = String(t.dropFirst(2))+ if item.hasPrefix("**"), let end = item.range(of: "**", range: item.index(item.startIndex, offsetBy: 2)..<item.endIndex) {+ return String(item[item.index(item.startIndex, offsetBy: 2)..<end.lowerBound])+ }+ let plain = item.replacingOccurrences(of: "**", with: "").replacingOccurrences(of: "*", with: "")+ return plain.count > 70 ? String(plain.prefix(68)) + "…" : plain+ }+ return nil+ }++ /// Only GitHub serves the update (its assets redirect to githubusercontent.com).+ static func allowedHost(_ host: String?) -> Bool {+ guard let h = host?.lowercased() else { return false }+ return h == "github.com" || h == "api.github.com" || h.hasSuffix(".githubusercontent.com")+ }++ /// Coucou replaces itself only where it was installed by hand: /Applications or ~/Applications.+ /// A build run from Xcode or DerivedData only points to the release page.+ static func canReplace(bundlePath: String, home: String) -> Bool {+ let parent = (bundlePath as NSString).deletingLastPathComponent+ return bundlePath.hasSuffix(".app") && (parent == "/Applications" || parent == home + "/Applications")+ }++ /// How often Coucou looks, once the user said yes: GitHub's unauthenticated limit is 60 calls an hour.+ static let checkInterval: TimeInterval = 6 * 3600+ /// "Later" hides one version for a day; a newer one shows at once.+ static let snooze: TimeInterval = 24 * 3600++ static func shouldCheck(last: Date?, now: Date) -> Bool {+ guard let last else { return true }+ return now.timeIntervalSince(last) >= checkInterval || now < last+ }++ /// Whether Mochi says "New version": newer than what runs, and not put off a moment ago.+ static func shouldAnnounce(_ release: Release, current: String, snoozedVersion: String?, snoozedAt: Date?, now: Date) -> Bool {+ guard isNewer(release.version, than: current) else { return false }+ if snoozedVersion == release.version, let at = snoozedAt, now.timeIntervalSince(at) < snooze, now >= at { return false }+ return true+ }++ /// The app in the zip is the one announced: right bundle id, the release's version.+ static func matches(infoPlist: [String: Any], version: String) -> Bool {+ infoPlist["CFBundleIdentifier"] as? String == bundleId+ && infoPlist["CFBundleShortVersionString"] as? String == version+ }+}diff --git a/NotchBuddy/Sources/App/MacUpdateViews.swift b/NotchBuddy/Sources/App/MacUpdateViews.swiftnew file mode 100644index 00000000..f9f910fb--- /dev/null+++ b/NotchBuddy/Sources/App/MacUpdateViews.swift@@ -0,0 +1,155 @@+#if !APPSTORE+import SwiftUI++// MARK: - Notch card: "Coucou 0.6.0 is out", one click to install it++struct UpdateCardView: View {+ @ObservedObject private var updater = MacUpdater.shared++ var body: some View {+ ZStack {+ CardBackground(wash: .green)+ VStack(alignment: .leading, spacing: 6) {+ content+ }+ .padding(.leading, 116)+ .padding(.trailing, 16)+ .padding(.vertical, 4)+ .frame(maxWidth: .infinity, alignment: .leading)+ }+ }++ @ViewBuilder private var content: some View {+ switch updater.phase {+ case .asking:+ title(String(localized: "update.ask.title"))+ line(String(localized: "update.ask.body"))+ HStack(spacing: 8) {+ PrimaryButton(verbatim: String(localized: "update.ask.yes")) { updater.answer(true) }+ SecondaryButton(verbatim: String(localized: "update.ask.no")) { updater.answer(false) }+ }++ case .available(let r):+ header(r)+ HStack(spacing: 8) {+ PrimaryButton(verbatim: String(localized: "update.now")) { updater.install() }+ SecondaryButton(verbatim: String(localized: "update.whats-new")) { updater.openReleasePage() }+ SecondaryButton(verbatim: String(localized: "update.later")) { updater.later() }+ }++ case .downloading(let r, let fraction):+ header(r)+ ProgressView(value: max(0, min(1, fraction)))+ .progressViewStyle(.linear)+ .tint(Color(hex: "#34D399"))+ .frame(maxWidth: 260)+ line(String(localized: "update.downloading") + " \(Int((fraction * 100).rounded())) %")++ case .verifying(let r):+ header(r)+ working(String(localized: "update.verifying"))++ case .installing(let r):+ header(r)+ working(String(localized: "update.installing"))++ case .relaunching(let r):+ header(r)+ working(String(localized: "update.relaunching"))++ case .manual(let r):+ header(r)+ line(String(localized: "update.manual"))+ HStack(spacing: 8) {+ PrimaryButton(verbatim: String(localized: "update.open-github")) { updater.openReleasePage() }+ SecondaryButton("OK") { updater.dismiss() }+ }++ case .failed(_, let message):+ title(String(localized: "update.failed"))+ line(message)+ HStack(spacing: 8) {+ PrimaryButton(verbatim: String(localized: "update.open-github")) { updater.openReleasePage() }+ SecondaryButton("OK") { updater.dismiss() }+ }++ case .idle:+ title(String(localized: "update.up-to-date"))+ SecondaryButton("OK") { updater.dismiss() }+ }+ }++ private func header(_ r: MacUpdate.Release) -> some View {+ VStack(alignment: .leading, spacing: 3) {+ title(String(format: String(localized: "update.title %@"), r.version))+ line(r.headline.map { "\($0) · " + String(format: String(localized: "update.you-have %@"), MacUpdater.currentVersion) }+ ?? String(format: String(localized: "update.you-have %@"), MacUpdater.currentVersion))+ }+ }++ private func title(_ s: String) -> some View {+ Text(s)+ .font(.system(size: 14, weight: .semibold))+ .foregroundColor(Color(hex: "#F1F2F4"))+ .lineLimit(1)+ }++ private func line(_ s: String) -> some View {+ Text(s)+ .font(.system(size: 11))+ .foregroundColor(Color(hex: "#8E939C"))+ .lineLimit(2)+ .fixedSize(horizontal: false, vertical: true)+ }++ private func working(_ s: String) -> some View {+ HStack(spacing: 7) {+ ProgressView().controlSize(.small)+ line(s)+ }+ }+}++// MARK: - Settings → General → Updates++struct UpdateSettingsSection: View {+ @ObservedObject private var updater = MacUpdater.shared+ @State private var enabled = MacUpdater.consent == true++ var body: some View {+ GroupBox(String(localized: "update.settings.title")) {+ VStack(alignment: .leading, spacing: 10) {+ Toggle(String(localized: "update.settings.toggle"), isOn: $enabled)+ .onChange(of: enabled) { _, on in updater.setEnabled(on) }+ Text(String(localized: "update.settings.footer"))+ .font(.system(size: 11))+ .foregroundColor(.secondary)+ .fixedSize(horizontal: false, vertical: true)+ HStack(spacing: 10) {+ if let r = updater.latest {+ Button(String(format: String(localized: "update.settings.install %@"), r.version)) { updater.show(r) }+ }+ Button(String(localized: "update.settings.check")) {+ Task { await updater.check(manual: true) }+ }+ .disabled(updater.lastCheck == .checking || updater.busy)+ status+ }+ Text(String(format: String(localized: "update.you-have %@"), MacUpdater.currentVersion))+ .font(.system(size: 11))+ .foregroundColor(.secondary)+ }+ .padding(6)+ }+ }++ @ViewBuilder private var status: some View {+ switch updater.lastCheck {+ case .checking: ProgressView().controlSize(.small)+ case .upToDate: Text(String(localized: "update.up-to-date")).font(.system(size: 11)).foregroundColor(.secondary)+ case .unreachable: Text(String(localized: "update.settings.unreachable")).font(.system(size: 11)).foregroundColor(.secondary)+ case .none: EmptyView()+ }+ }+}+#endifdiff --git a/NotchBuddy/Sources/App/MacUpdater.swift b/NotchBuddy/Sources/App/MacUpdater.swiftnew file mode 100644index 00000000..7bec9218--- /dev/null+++ b/NotchBuddy/Sources/App/MacUpdater.swift@@ -0,0 +1,364 @@+#if !APPSTORE+import AppKit+import Foundation+import Security++// "New version" in the notch, and one click to get it (GitHub build only: the App Store updates+// its own build). Coucou looks at its own GitHub releases only once the user said yes, a few+// times a day; nothing about the user goes with the request. The update is downloaded from+// GitHub only, then checked before anything is replaced: the app in the zip must be Coucou+// (bundle id and the announced version), signed with Louis's Developer ID, and accepted by+// Gatekeeper (notarized). Only then does it take the place of the running app, which restarts.++@MainActor+final class MacUpdater: ObservableObject {+ static let shared = MacUpdater()++ enum Phase: Equatable {+ case idle+ /// Asking once whether Coucou may look at GitHub.+ case asking+ case available(MacUpdate.Release)+ case downloading(MacUpdate.Release, fraction: Double)+ case verifying(MacUpdate.Release)+ case installing(MacUpdate.Release)+ case relaunching(MacUpdate.Release)+ /// Coucou can't replace itself here (not in Applications, or not writable): GitHub it is.+ case manual(MacUpdate.Release)+ case failed(MacUpdate.Release, String)+ }++ enum CheckResult: Equatable { case none, checking, upToDate, unreachable }++ @Published private(set) var phase: Phase = .idle+ /// For "Check now" in Settings.+ @Published private(set) var lastCheck: CheckResult = .none+ /// The newest release found, kept even after "Later" (the menu bar and Settings offer it).+ @Published private(set) var latest: MacUpdate.Release? = nil++ // Not secrets: UserDefaults.+ /// nil: not asked yet. true: Coucou may look at GitHub. false: never.+ static var consent: Bool? {+ get { UserDefaults.standard.object(forKey: "updateCheckConsent") as? Bool }+ set { UserDefaults.standard.set(newValue, forKey: "updateCheckConsent") }+ }+ private var lastCheckDate: Date? {+ get { UserDefaults.standard.object(forKey: "updateLastCheck") as? Date }+ set { UserDefaults.standard.set(newValue, forKey: "updateLastCheck") }+ }+ private var snoozedVersion: String? {+ get { UserDefaults.standard.string(forKey: "updateSnoozedVersion") }+ set { UserDefaults.standard.set(newValue, forKey: "updateSnoozedVersion") }+ }+ private var snoozedAt: Date? {+ get { UserDefaults.standard.object(forKey: "updateSnoozedAt") as? Date }+ set { UserDefaults.standard.set(newValue, forKey: "updateSnoozedAt") }+ }+ private var askedAt: Date? {+ get { UserDefaults.standard.object(forKey: "updateConsentAskedAt") as? Date }+ set { UserDefaults.standard.set(newValue, forKey: "updateConsentAskedAt") }+ }++ static var currentVersion: String {+ Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "0"+ }++ var busy: Bool {+ switch phase {+ case .downloading, .verifying, .installing, .relaunching: return true+ default: return false+ }+ }++ private var timer: Timer?+ private var downloadTask: URLSessionDownloadTask?++ private let session: URLSession = {+ let config = URLSessionConfiguration.ephemeral+ config.urlCache = nil+ config.httpCookieStorage = nil+ config.httpShouldSetCookies = false+ config.timeoutIntervalForRequest = 30+ config.timeoutIntervalForResource = 900+ return URLSession(configuration: config, delegate: UpdateGitHubOnly(), delegateQueue: nil)+ }()++ // MARK: - Schedule++ /// At launch: a first look 30 s in, then every hour (a GitHub call only every 6 h).+ func start() {+ DispatchQueue.main.asyncAfter(deadline: .now() + 30) { [weak self] in self?.tick(launch: true) }+ timer?.invalidate()+ let t = Timer(timeInterval: 3600, repeats: true) { _ in+ Task { @MainActor in MacUpdater.shared.tick() }+ }+ t.tolerance = 300+ RunLoop.main.add(t, forMode: .common)+ timer = t+ }++ private func tick(launch: Bool = false) {+ switch Self.consent {+ case nil:+ askIfFree()+ case true?:+ if launch || MacUpdate.shouldCheck(last: lastCheckDate, now: Date()) { Task { await check(manual: false) } }+ else { announceIfFree() }+ case false?:+ break+ }+ }++ /// The question comes once a day at most, when nothing else waits in the notch.+ private func askIfFree() {+ if let at = askedAt, Date().timeIntervalSince(at) < 24 * 3600, Date() >= at { return }+ guard islandFree else { return }+ askedAt = Date()+ phase = .asking+ NotificationCenter.default.post(name: .hookExpand, object: IslandView.update)+ }++ private var islandFree: Bool {+ let s = AppState.shared+ return s.pendingApproval == nil && s.pendingQuestion == nil && !(s.mode == .expanded && s.view != .update)+ }++ func answer(_ yes: Bool) {+ Self.consent = yes+ phase = .idle+ NotificationCenter.default.post(name: .islandCollapse, object: nil)+ if yes { Task { await check(manual: false) } }+ }++ /// Settings: the toggle.+ func setEnabled(_ on: Bool) {+ Self.consent = on+ if on { Task { await check(manual: false) } }+ else if case .asking = phase { phase = .idle }+ }++ // MARK: - Check++ func check(manual: Bool) async {+ guard !busy, lastCheck != .checking else { return }+ lastCheck = .checking+ var req = URLRequest(url: MacUpdate.releasesURL)+ req.setValue("application/vnd.github+json", forHTTPHeaderField: "Accept")+ do {+ let (data, response) = try await session.data(for: req)+ lastCheckDate = Date()+ guard (response as? HTTPURLResponse)?.statusCode == 200 else { lastCheck = .unreachable; return }+ guard let release = MacUpdate.latest(data), MacUpdate.isNewer(release.version, than: Self.currentVersion) else {+ latest = nil+ lastCheck = .upToDate+ if case .available = phase { phase = .idle }+ return+ }+ latest = release+ lastCheck = .none+ appendAppLog("nb.log", "[Update] \(release.version) is out (running \(Self.currentVersion))")+ if manual {+ show(release)+ } else {+ announceIfFree()+ }+ } catch {+ lastCheck = .unreachable+ }+ }++ /// Mochi says it once a day at most for a version, until it is installed; in between, the+ /// menu bar and Settings keep offering it.+ private func announceIfFree() {+ guard let release = latest, !busy, islandFree,+ MacUpdate.shouldAnnounce(release, current: Self.currentVersion, snoozedVersion: snoozedVersion,+ snoozedAt: snoozedAt, now: Date()) else { return }+ snoozedVersion = release.version+ snoozedAt = Date()+ show(release)+ NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.surprised)+ SoundEngine.shared.play("peek")+ }++ /// Opens the card on this release (menu bar, Settings, the timer).+ func show(_ release: MacUpdate.Release? = nil) {+ guard let release = release ?? latest else { return }+ if !busy { phase = .available(release) }+ NotificationCenter.default.post(name: .hookExpand, object: IslandView.update)+ }++ func later() {+ if case .available(let r) = phase {+ snoozedVersion = r.version+ snoozedAt = Date()+ }+ if !busy { phase = .idle }+ NotificationCenter.default.post(name: .islandCollapse, object: nil)+ }++ func openReleasePage() {+ let release: MacUpdate.Release?+ switch phase {+ case .available(let r), .downloading(let r, _), .verifying(let r), .installing(let r),+ .relaunching(let r), .manual(let r), .failed(let r, _): release = r+ default: release = latest+ }+ let url = release?.pageURL ?? URL(string: "https://github.com/\(MacUpdate.owner)/\(MacUpdate.repo)/releases/latest")!+ NSWorkspace.shared.open(url)+ }++ func dismiss() {+ if !busy { phase = latest.map { Phase.available($0) } ?? .idle }+ NotificationCenter.default.post(name: .islandCollapse, object: nil)+ }++ // MARK: - Install++ func install() {+ guard case .available(let release) = phase else { return }+ let bundle = Bundle.main.bundleURL+ let parent = bundle.deletingLastPathComponent().path+ let fm = FileManager.default+ guard MacUpdate.canReplace(bundlePath: bundle.path, home: NSHomeDirectory()),+ fm.isWritableFile(atPath: parent), fm.isWritableFile(atPath: bundle.path) else {+ phase = .manual(release)+ return+ }+ phase = .downloading(release, fraction: 0)+ Task { await run(release) }+ }++ private func run(_ release: MacUpdate.Release) async {+ let bundle = Bundle.main.bundleURL+ do {+ // 1. Download, from GitHub only.+ let zip = try await download(release.zipURL, release: release)++ // 2. Unzip next to the app (same volume, so the swap is atomic), then check it.+ phase = .verifying(release)+ let newApp = try await Task.detached { () throws -> URL in+ try Self.unpackAndVerify(zip: zip, next: bundle, version: release.version)+ }.value++ // 3. Swap the bundles, then restart into the new one.+ phase = .installing(release)+ try await Task.detached {+ _ = try FileManager.default.replaceItemAt(bundle, withItemAt: newApp, backupItemName: nil,+ options: [.usingNewMetadataOnly])+ try? FileManager.default.removeItem(at: newApp.deletingLastPathComponent())+ }.value+ appendAppLog("nb.log", "[Update] installed \(release.version), restarting")+ phase = .relaunching(release)+ relaunch(bundle, release: release)+ } catch let failure as UpdateFailure {+ phase = .failed(release, failure.message)+ appendAppLog("nb.log", "[Update] failed: \(failure.message)")+ } catch {+ phase = .failed(release, String(localized: "update.error.download"))+ appendAppLog("nb.log", "[Update] failed: \(error.localizedDescription)")+ }+ }++ private func download(_ url: URL, release: MacUpdate.Release) async throws -> URL {+ let progress = Task { @MainActor [weak self] in+ while !Task.isCancelled {+ try? await Task.sleep(nanoseconds: 250_000_000)+ guard let self, let task = self.downloadTask, case .downloading = self.phase else { continue }+ self.phase = .downloading(release, fraction: task.progress.fractionCompleted)+ }+ }+ defer { progress.cancel(); downloadTask = nil }+ return try await withCheckedThrowingContinuation { (cont: CheckedContinuation<URL, Error>) in+ let task = session.downloadTask(with: url) { tmp, response, error in+ if let error { cont.resume(throwing: error); return }+ guard let tmp, (response as? HTTPURLResponse)?.statusCode == 200 else {+ cont.resume(throwing: UpdateFailure(String(localized: "update.error.download"))); return+ }+ // The temporary file goes away when this returns: keep it.+ let kept = FileManager.default.temporaryDirectory+ .appendingPathComponent("coucou-update-\(UUID().uuidString).zip")+ do { try FileManager.default.moveItem(at: tmp, to: kept); cont.resume(returning: kept) }+ catch { cont.resume(throwing: error) }+ }+ downloadTask = task+ task.resume()+ }+ }++ /// Unzips with macOS's own ditto and checks the app before it may replace this one.+ nonisolated private static func unpackAndVerify(zip: URL, next bundle: URL, version: String) throws -> URL {+ let fm = FileManager.default+ defer { try? fm.removeItem(at: zip) }+ let staging = try fm.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: bundle, create: true)+ func fail(_ key: String.LocalizationValue) -> UpdateFailure {+ try? fm.removeItem(at: staging)+ return UpdateFailure(String(localized: key))+ }+ guard run("/usr/bin/ditto", ["-x", "-k", zip.path, staging.path]) else { throw fail("update.error.unzip") }+ guard let app = (try? fm.contentsOfDirectory(at: staging, includingPropertiesForKeys: nil))?+ .first(where: { $0.pathExtension == "app" }) else { throw fail("update.error.unzip") }++ // The announced Coucou, not another app or another version.+ guard let info = NSDictionary(contentsOf: app.appendingPathComponent("Contents/Info.plist")) as? [String: Any],+ MacUpdate.matches(infoPlist: info, version: version) else { throw fail("update.error.not-coucou") }++ // Signed by Coucou's developer, every architecture and nested binary intact.+ var code: SecStaticCode?+ var requirement: SecRequirement?+ let flags = SecCSFlags(rawValue: kSecCSCheckAllArchitectures | kSecCSStrictValidate | kSecCSCheckNestedCode)+ guard SecStaticCodeCreateWithPath(app as CFURL, [], &code) == errSecSuccess, let code,+ SecRequirementCreateWithString(MacUpdate.codeRequirement as CFString, [], &requirement) == errSecSuccess,+ let requirement,+ SecStaticCodeCheckValidity(code, flags, requirement) == errSecSuccess else { throw fail("update.error.signature") }++ // Notarized: Gatekeeper accepts it as it would a download from the browser.+ guard run("/usr/sbin/spctl", ["--assess", "--type", "execute", app.path]) else { throw fail("update.error.signature") }++ removexattr(app.path, "com.apple.quarantine", 0)+ return app+ }++ nonisolated private static func run(_ tool: String, _ args: [String]) -> Bool {+ let p = Process()+ p.executableURL = URL(fileURLWithPath: tool)+ p.arguments = args+ p.standardOutput = FileHandle.nullDevice+ p.standardError = FileHandle.nullDevice+ do { try p.run() } catch { return false }+ p.waitUntilExit()+ return p.terminationStatus == 0+ }++ /// A small shell waits for this Coucou to quit, then opens the new one.+ private func relaunch(_ bundle: URL, release: MacUpdate.Release) {+ let pid = ProcessInfo.processInfo.processIdentifier+ let p = Process()+ p.executableURL = URL(fileURLWithPath: "/bin/sh")+ p.arguments = ["-c", "while kill -0 \(pid) 2>/dev/null; do sleep 0.2; done; /usr/bin/open \"$0\"", bundle.path]+ p.standardOutput = FileHandle.nullDevice+ p.standardError = FileHandle.nullDevice+ do {+ try p.run()+ } catch {+ // Already installed: the next launch is the new version.+ phase = .failed(release, String(localized: "update.error.restart"))+ return+ }+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) { NSApp.terminate(nil) }+ }+}++private struct UpdateFailure: Error, Sendable {+ let message: String+ init(_ m: String) { message = m }+}++/// The download follows GitHub's redirect to its asset storage, and nothing else.+private final class UpdateGitHubOnly: NSObject, URLSessionTaskDelegate, Sendable {+ func urlSession(_ session: URLSession, task: URLSessionTask,+ willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,+ completionHandler: @escaping @Sendable (URLRequest?) -> Void) {+ completionHandler(MacUpdate.allowedHost(request.url?.host) ? request : nil)+ }+}+#endifdiff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swiftindex a08fc6f2..1831dc2a 100644--- a/NotchBuddy/Sources/App/SettingsView.swift+++ b/NotchBuddy/Sources/App/SettingsView.swift@@ -436,6 +436,10 @@ struct SettingsView: View {.padding(6)}+ #if !APPSTORE+ UpdateSettingsSection()+ #endif+GroupBox(String(localized: "Weekly recap")) {VStack(alignment: .leading, spacing: 10) {Toggle(String(localized: "Keep a history of my coding sessions"), isOn: $state.recapEnabled)diff --git a/NotchBuddy/Sources/CoucouKit/IslandTypes.swift b/NotchBuddy/Sources/CoucouKit/IslandTypes.swiftindex 5efd0efa..20187cce 100644--- a/NotchBuddy/Sources/CoucouKit/IslandTypes.swift+++ b/NotchBuddy/Sources/CoucouKit/IslandTypes.swift@@ -15,6 +15,7 @@ enum IslandView: String, CaseIterable {case listening // voice wake detected — "À l'écoute…" with live transcriptcase voiceResult // voice command executed — "✓ Musique lancée" for ~2 scase capture // a screen capture just taken (⌃⌥X): paste, copy, annotate, ask Claude+ case update // a new Coucou is out on GitHub: one click to install it (GitHub build)}// MARK: - Bot State@@ -240,6 +241,8 @@ enum IslandConst {.voiceResult: ViewLayout(height: 160, botX: 68, botY: nil, botDiameter: 58, agentMode: .none),// Screen capture: Mochi on the left (he just swallowed it), the image and what to do with it.capture: ViewLayout(height: 160, botX: 58, botY: nil, botDiameter: 52, agentMode: .none),+ // New version: Mochi on the left, the version and Update now+ .update: ViewLayout(height: 160, botX: 62, botY: nil, botDiameter: 58, agentMode: .none),]// Project colors — keyed by lowercase display name or slugdiff --git a/scripts/test-mac-update.sh b/scripts/test-mac-update.shnew file mode 100755index 00000000..d24d4d5f--- /dev/null+++ b/scripts/test-mac-update.sh@@ -0,0 +1,7 @@+#!/usr/bin/env bash+set -euo pipefail+cd "$(dirname "$0")/.."+TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-mac-update.XXXXXX")"+trap 'rm -rf "$TEST_DIR"' EXIT+swiftc NotchBuddy/Sources/App/MacUpdate.swift tests/MacUpdateTests.swift -o "$TEST_DIR/mac-update-tests"+"$TEST_DIR/mac-update-tests"diff --git a/tests/MacUpdateTests.swift b/tests/MacUpdateTests.swiftnew file mode 100644index 00000000..858d5865--- /dev/null+++ b/tests/MacUpdateTests.swift@@ -0,0 +1,106 @@+import Foundation++@main+enum MacUpdateTests {+ static var failures = 0++ static func check(_ label: String, _ got: Bool) {+ if got { print(" ✓ \(label)") }+ else { print(" ✗ \(label)"); failures += 1 }+ }++ static func release(_ tag: String, draft: Bool = false, pre: Bool = false, zip: Bool = true, body: String = "") -> [String: Any] {+ var assets: [[String: Any]] = [["name": "notes.txt", "browser_download_url": "https://github.com/x/notes.txt", "size": 3]]+ if zip {+ assets.append(["name": "Coucou.zip", "size": 34_000_000,+ "browser_download_url": "https://github.com/Louis-CFM/coucou/releases/download/\(tag)/Coucou.zip"])+ }+ return ["tag_name": tag, "draft": draft, "prerelease": pre, "assets": assets, "body": body,+ "html_url": "https://github.com/Louis-CFM/coucou/releases/tag/\(tag)"]+ }++ static func json(_ list: [[String: Any]]) -> Data { try! JSONSerialization.data(withJSONObject: list) }++ static func main() {+ print("\nTags: only the Mac's")+ check("v0.5.1", MacUpdate.macVersion("v0.5.1") == "0.5.1")+ check("v1.0", MacUpdate.macVersion("v1.0") == "1.0")+ check("windows-v0.5.0 is not the Mac's", MacUpdate.macVersion("windows-v0.5.0") == nil)+ check("linux-latest", MacUpdate.macVersion("linux-latest") == nil)+ check("android-v0.2.0", MacUpdate.macVersion("android-v0.2.0") == nil)+ check("v0.5.1-beta", MacUpdate.macVersion("v0.5.1-beta") == nil)+ check("v", MacUpdate.macVersion("v") == nil)++ print("\nVersions compare as numbers")+ check("0.10.0 > 0.9.3", MacUpdate.isNewer("0.10.0", than: "0.9.3"))+ check("0.5.1 > 0.5", MacUpdate.isNewer("0.5.1", than: "0.5"))+ check("0.5 = 0.5.0", !MacUpdate.isNewer("0.5", than: "0.5.0") && !MacUpdate.isNewer("0.5.0", than: "0.5"))+ check("0.5.0 < 0.5.1", !MacUpdate.isNewer("0.5.0", than: "0.5.1"))+ check("1.0.0 > 0.99.99", MacUpdate.isNewer("1.0.0", than: "0.99.99"))++ print("\nThe newest published Mac release")+ do {+ let list = [+ release("windows-v0.6.0"), release("linux-latest"),+ release("v0.9.0", draft: true), release("v0.8.0", pre: true), release("v0.7.0", zip: false),+ release("v0.5.1"), release("v0.10.0", body: "Coucou 0.10.0\n\n## What's new\n\n- **One-click update** from the notch.\n- Other\n\n## Install\n- x"),+ release("v0.6.2"),+ ]+ let r = MacUpdate.latest(json(list))+ check("picks v0.10.0 over 0.6.2 and 0.5.1", r?.version == "0.10.0" && r?.tag == "v0.10.0")+ check("its Coucou.zip", r?.zipURL.lastPathComponent == "Coucou.zip" && r?.size == 34_000_000)+ check("its page", r?.pageURL.absoluteString == "https://github.com/Louis-CFM/coucou/releases/tag/v0.10.0")+ check("headline from the bold part", r?.headline == "One-click update")+ check("nothing for drafts and others only", MacUpdate.latest(json([release("v0.9.0", draft: true), release("windows-v1.0")])) == nil)+ check("garbage", MacUpdate.latest(Data("{\"message\":\"rate limited\"}".utf8)) == nil)+ }++ print("\nHeadline")+ check("plain bullet", MacUpdate.headline("## What's new\n\n- Faster pills") == "Faster pills")+ check("stops at the next section", MacUpdate.headline("## What's new\n\n## Install\n- download") == nil)+ check("no section", MacUpdate.headline("- something") == nil)+ check("long line cut", (MacUpdate.headline("## What's new\n- " + String(repeating: "a", count: 120)) ?? "").count == 69)++ print("\nOnly GitHub")+ check("github.com", MacUpdate.allowedHost("github.com"))+ check("objects.githubusercontent.com", MacUpdate.allowedHost("objects.githubusercontent.com"))+ check("release-assets.githubusercontent.com", MacUpdate.allowedHost("release-assets.githubusercontent.com"))+ check("not evilgithubusercontent.com", !MacUpdate.allowedHost("evilgithubusercontent.com"))+ check("not github.com.evil.io", !MacUpdate.allowedHost("github.com.evil.io"))+ check("nil", !MacUpdate.allowedHost(nil))++ print("\nWhere Coucou may replace itself")+ check("/Applications", MacUpdate.canReplace(bundlePath: "/Applications/Coucou.app", home: "/Users/l"))+ check("~/Applications", MacUpdate.canReplace(bundlePath: "/Users/l/Applications/Coucou.app", home: "/Users/l"))+ check("not DerivedData", !MacUpdate.canReplace(bundlePath: "/Users/l/Library/Developer/Xcode/DerivedData/x/Build/Products/Debug/Coucou.app", home: "/Users/l"))+ check("not Downloads", !MacUpdate.canReplace(bundlePath: "/Users/l/Downloads/Coucou.app", home: "/Users/l"))+ check("not a subfolder of Applications", !MacUpdate.canReplace(bundlePath: "/Applications/Tools/Coucou.app", home: "/Users/l"))++ print("\nWhen to look, when to say it")+ let now = Date(timeIntervalSince1970: 1_800_000_000)+ check("never looked", MacUpdate.shouldCheck(last: nil, now: now))+ check("an hour ago: not yet", !MacUpdate.shouldCheck(last: now - 3600, now: now))+ check("seven hours ago", MacUpdate.shouldCheck(last: now - 7 * 3600, now: now))+ check("the clock went back", MacUpdate.shouldCheck(last: now + 3600, now: now))+ let r = MacUpdate.Release(version: "0.6.0", tag: "v0.6.0", zipURL: URL(string: "https://github.com/a")!, size: 1,+ pageURL: URL(string: "https://github.com/b")!, headline: nil)+ check("newer: announced", MacUpdate.shouldAnnounce(r, current: "0.5.1", snoozedVersion: nil, snoozedAt: nil, now: now))+ check("same: not", !MacUpdate.shouldAnnounce(r, current: "0.6.0", snoozedVersion: nil, snoozedAt: nil, now: now))+ check("older release (a dev build): not", !MacUpdate.shouldAnnounce(r, current: "0.7.0", snoozedVersion: nil, snoozedAt: nil, now: now))+ check("Later an hour ago: not", !MacUpdate.shouldAnnounce(r, current: "0.5.1", snoozedVersion: "0.6.0", snoozedAt: now - 3600, now: now))+ check("Later yesterday: again", MacUpdate.shouldAnnounce(r, current: "0.5.1", snoozedVersion: "0.6.0", snoozedAt: now - 25 * 3600, now: now))+ check("Later on an older version: this one shows", MacUpdate.shouldAnnounce(r, current: "0.5.1", snoozedVersion: "0.5.2", snoozedAt: now - 60, now: now))++ print("\nThe app in the zip")+ check("right id and version", MacUpdate.matches(infoPlist: ["CFBundleIdentifier": "fr.louisraille.NotchBuddy", "CFBundleShortVersionString": "0.6.0"], version: "0.6.0"))+ check("another app", !MacUpdate.matches(infoPlist: ["CFBundleIdentifier": "com.evil.app", "CFBundleShortVersionString": "0.6.0"], version: "0.6.0"))+ check("another version", !MacUpdate.matches(infoPlist: ["CFBundleIdentifier": "fr.louisraille.NotchBuddy", "CFBundleShortVersionString": "0.5.9"], version: "0.6.0"))+ check("requirement names the team", MacUpdate.codeRequirement.contains("256AUJ9555") && MacUpdate.codeRequirement.contains("anchor apple generic"))++ if failures > 0 {+ print("\n\(failures) failure(s)")+ exit(1)+ }+ print("\nAll Mac update tests passed")+ }+}diff --git a/windows/src/i18n/strings.json b/windows/src/i18n/strings.jsonindex a20602c8..e2bc5bdc 100644--- a/windows/src/i18n/strings.json+++ b/windows/src/i18n/strings.json@@ -827,6 +827,17 @@"ru": "Чат — другие провайдеры","id": "Chat — penyedia lain"},+ "Check now": {+ "zh-Hans": "立即检查",+ "hi": "अभी जाँचें",+ "es": "Comprobar ahora",+ "ar": "التحقق الآن",+ "fr": "Vérifier maintenant",+ "bn": "এখনই দেখুন",+ "pt-BR": "Verificar agora",+ "ru": "Проверить сейчас",+ "id": "Periksa sekarang"+ },"Checking for new messages every 20 s.": {"zh-Hans": "每 20 秒检查一次新消息。","hi": "हर 20 सेकंड में नए संदेश जाँचे जा रहे हैं।",@@ -849,6 +860,17 @@"ru": "Проверка загрузки…","id": "Memeriksa unduhan…"},+ "Checking the signature…": {+ "zh-Hans": "正在验证签名…",+ "hi": "सिग्नेचर जाँचा जा रहा है…",+ "es": "Comprobando la firma…",+ "ar": "جارٍ التحقق من التوقيع…",+ "fr": "Vérification de la signature…",+ "bn": "স্বাক্ষর যাচাই হচ্ছে…",+ "pt-BR": "Verificando a assinatura…",+ "ru": "Проверка подписи…",+ "id": "Memeriksa tanda tangan…"+ },"Choose the tools you use. Coucou only shows what you declare here.": {"zh-Hans": "选择你使用的工具。Coucou 只显示你在这里声明的内容。","hi": "वे टूल चुनें जो आप उपयोग करते हैं। Coucou केवल वही दिखाता है जो आप यहाँ घोषित करते हैं।",@@ -1443,6 +1465,17 @@"ru": "Coucou скачивает GOWA, шлюз с открытым кодом, с его страницы на GitHub (около 15 МБ, один раз), проверяет и запускает. Затем отсканируйте QR-код телефоном. Терминал не нужен.","id": "Coucou mengunduh GOWA, gateway open source, dari halaman GitHub-nya (sekitar 15 MB, sekali saja), memeriksanya lalu menjalankannya. Lalu pindai kode QR dengan ponselmu. Tanpa Terminal."},+ "Coucou is up to date": {+ "zh-Hans": "Coucou 已是最新版本",+ "hi": "Coucou अप-टू-डेट है",+ "es": "Coucou está actualizado",+ "ar": "Coucou محدَّث",+ "fr": "Coucou est à jour",+ "bn": "Coucou হালনাগাদ আছে",+ "pt-BR": "O Coucou está atualizado",+ "ru": "Coucou обновлён",+ "id": "Coucou sudah terbaru"+ },"Coucou is writing the transcript, person by person…": {"zh-Hans": "Coucou 正在按人逐句写转写…","hi": "Coucou हर व्यक्ति के हिसाब से ट्रांसक्रिप्ट लिख रहा है…",@@ -1454,6 +1487,28 @@"ru": "Coucou составляет расшифровку по участникам…","id": "Coucou sedang menulis transkrip, per orang…"},+ "Coucou isn’t in your Applications folder, so it can’t replace itself: get the new version on GitHub.": {+ "zh-Hans": "Coucou 不在“应用程序”文件夹中,无法自行替换:请在 GitHub 上获取新版本。",+ "hi": "Coucou आपके Applications फ़ोल्डर में नहीं है, इसलिए खुद को बदल नहीं सकता: नया वर्ज़न GitHub से लें।",+ "es": "Coucou no está en tu carpeta Aplicaciones, así que no puede reemplazarse: descarga la nueva versión en GitHub.",+ "ar": "Coucou ليس في مجلد التطبيقات، لذا لا يمكنه استبدال نفسه: احصل على الإصدار الجديد من GitHub.",+ "fr": "Coucou n’est pas dans ton dossier Applications, il ne peut donc pas se remplacer : récupère la nouvelle version sur GitHub.",+ "bn": "Coucou আপনার Applications ফোল্ডারে নেই, তাই নিজেকে বদলাতে পারে না: নতুন সংস্করণ GitHub থেকে নিন।",+ "pt-BR": "O Coucou não está na sua pasta Aplicativos, então não pode se substituir: baixe a nova versão no GitHub.",+ "ru": "Coucou не в папке «Программы», поэтому не может заменить себя: скачайте новую версию на GitHub.",+ "id": "Coucou tidak ada di folder Aplikasi, jadi tidak bisa mengganti dirinya: ambil versi baru di GitHub."+ },+ "Coucou looks at its own releases on GitHub a few times a day. An update is installed only after your click, once Apple’s signature and notarization check out.": {+ "zh-Hans": "Coucou 每天会在 GitHub 上查看几次自己的版本。只有在你点击后、并验证 Apple 签名和公证后才会安装更新。",+ "hi": "Coucou दिन में कुछ बार GitHub पर अपने रिलीज़ देखता है। अपडेट सिर्फ़ आपके क्लिक के बाद, Apple का सिग्नेचर और नोटराइज़ेशन जाँचकर ही इंस्टॉल होता है।",+ "es": "Coucou revisa sus propias versiones en GitHub unas veces al día. Una actualización solo se instala tras tu clic, después de verificar la firma y la notarización de Apple.",+ "ar": "يتحقق Coucou من إصداراته على GitHub بضع مرات يوميًا. لا يُثبَّت أي تحديث إلا بعد نقرتك، وبعد التحقق من توقيع Apple وتوثيقها.",+ "fr": "Coucou regarde ses propres versions sur GitHub quelques fois par jour. Une mise à jour ne s’installe qu’après ton clic, une fois la signature et la notarisation Apple vérifiées.",+ "bn": "Coucou দিনে কয়েকবার GitHub-এ নিজের রিলিজ দেখে। আপনার ক্লিকের পরে, Apple-এর স্বাক্ষর ও নোটারাইজেশন যাচাই করেই কেবল আপডেট ইনস্টল হয়।",+ "pt-BR": "O Coucou verifica as próprias versões no GitHub algumas vezes por dia. Uma atualização só é instalada depois do seu clique, após conferir a assinatura e a notarização da Apple.",+ "ru": "Coucou несколько раз в день проверяет свои релизы на GitHub. Обновление устанавливается только после вашего нажатия и проверки подписи и нотаризации Apple.",+ "id": "Coucou memeriksa rilisnya sendiri di GitHub beberapa kali sehari. Pembaruan hanya dipasang setelah kamu klik, setelah tanda tangan dan notarisasi Apple diperiksa."+ },"Coucou only talks to the gateway on this Mac. Messages stay in memory, are never logged or saved, and are forgotten when Coucou quits. No photo or media is ever downloaded.": {"zh-Hans": "Coucou 只与这台 Mac 上的网关通信。消息只保存在内存中,从不记录或保存,退出 Coucou 时即被清除。从不下载任何照片或媒体。","hi": "Coucou सिर्फ़ इस Mac पर चल रहे गेटवे से बात करता है। संदेश मेमोरी में रहते हैं, कभी लॉग या सेव नहीं होते, और Coucou बंद होने पर भुला दिए जाते हैं। कोई फ़ोटो या मीडिया डाउनलोड नहीं होता।",@@ -1509,6 +1564,17 @@"ru": "Coucou записывает звонки текстом прямо на Mac с помощью Parakeet и различает голоса второй небольшой моделью. Обе скачиваются один раз (около 650 МБ), дальше всё работает без сети.","id": "Coucou menulis panggilanmu di Mac dengan Parakeet, dan membedakan suara dengan model kecil kedua. Keduanya diunduh sekali (sekitar 650 MB), lalu semuanya bekerja luring."},+ "Coucou {0} is out": {+ "zh-Hans": "Coucou {0} 已发布",+ "hi": "Coucou {0} आ गया है",+ "es": "Ya salió Coucou {0}",+ "ar": "صدر Coucou {0}",+ "fr": "Coucou {0} est sorti",+ "bn": "Coucou {0} এসে গেছে",+ "pt-BR": "Saiu o Coucou {0}",+ "ru": "Вышел Coucou {0}",+ "id": "Coucou {0} sudah rilis"+ },"Coucou’s webhook port": {"zh-Hans": "Coucou 的 Webhook 端口","hi": "Coucou का वेबहुक पोर्ट",@@ -1520,6 +1586,17 @@"ru": "Порт вебхука Coucou","id": "Port webhook Coucou"},+ "Couldn’t reach GitHub": {+ "zh-Hans": "无法连接 GitHub",+ "hi": "GitHub से संपर्क नहीं हो सका",+ "es": "No se pudo contactar con GitHub",+ "ar": "تعذّر الوصول إلى GitHub",+ "fr": "GitHub ne répond pas",+ "bn": "GitHub-এ পৌঁছানো যায়নি",+ "pt-BR": "Não foi possível acessar o GitHub",+ "ru": "Не удалось связаться с GitHub",+ "id": "Tidak dapat menghubungi GitHub"+ },"Counted on your Mac, never sent anywhere.": {"zh-Hans": "在你的 Mac 上统计,从不发送。","hi": "आपके Mac पर गिनी जाती हैं, कहीं भेजी नहीं जातीं।",@@ -1828,6 +1905,17 @@"ru": "Загрузка ({0} МБ)…","id": "Mengunduh ({0} MB)…"},+ "Downloading from GitHub…": {+ "zh-Hans": "正在从 GitHub 下载…",+ "hi": "GitHub से डाउनलोड हो रहा है…",+ "es": "Descargando desde GitHub…",+ "ar": "جارٍ التنزيل من GitHub…",+ "fr": "Téléchargement depuis GitHub…",+ "bn": "GitHub থেকে ডাউনলোড হচ্ছে…",+ "pt-BR": "Baixando do GitHub…",+ "ru": "Загрузка с GitHub…",+ "id": "Mengunduh dari GitHub…"+ },"Draft": {"zh-Hans": "草稿","hi": "ड्राफ्ट",@@ -2224,6 +2312,28 @@"ru": "Скачать Spotify","id": "Dapatkan Spotify"},+ "Get it on GitHub": {+ "zh-Hans": "前往 GitHub",+ "hi": "GitHub खोलें",+ "es": "Abrir GitHub",+ "ar": "فتح GitHub",+ "fr": "Ouvrir GitHub",+ "bn": "GitHub খুলুন",+ "pt-BR": "Abrir o GitHub",+ "ru": "Открыть GitHub",+ "id": "Buka GitHub"+ },+ "Get new versions from the notch?": {+ "zh-Hans": "在刘海里获取新版本?",+ "hi": "नए वर्ज़न नॉच में पाएँ?",+ "es": "¿Recibir las nuevas versiones en el notch?",+ "ar": "هل تريد تلقي الإصدارات الجديدة في النوتش؟",+ "fr": "Recevoir les nouvelles versions dans le notch ?",+ "bn": "নতুন সংস্করণ নচে পেতে চান?",+ "pt-BR": "Receber as novas versões no notch?",+ "ru": "Получать новые версии прямо в вырезе?",+ "id": "Dapatkan versi baru dari notch?"+ },"GitHub Copilot CLI hooks": {"zh-Hans": "GitHub Copilot CLI 钩子","hi": "GitHub Copilot CLI हुक",@@ -2708,6 +2818,17 @@"ru": "Установить ретранслятор","id": "Pasang relay"},+ "Install {0}": {+ "zh-Hans": "安装 {0}",+ "hi": "{0} इंस्टॉल करें",+ "es": "Instalar la {0}",+ "ar": "تثبيت {0}",+ "fr": "Installer la {0}",+ "bn": "{0} ইনস্টল করুন",+ "pt-BR": "Instalar a {0}",+ "ru": "Установить {0}",+ "id": "Pasang {0}"+ },"Installed": {"zh-Hans": "已安装","hi": "इंस्टॉल है",@@ -2719,6 +2840,17 @@"ru": "Установлен","id": "Terpasang"},+ "Installed: quit and reopen Coucou to use the new version.": {+ "zh-Hans": "已安装:退出并重新打开 Coucou 即可使用新版本。",+ "hi": "इंस्टॉल हो गया: नया वर्ज़न इस्तेमाल करने के लिए Coucou बंद करके फिर खोलें।",+ "es": "Instalada: cierra y vuelve a abrir Coucou para usar la nueva versión.",+ "ar": "تم التثبيت: أغلق Coucou وأعد فتحه لاستخدام الإصدار الجديد.",+ "fr": "Installée : quitte et rouvre Coucou pour utiliser la nouvelle version.",+ "bn": "ইনস্টল হয়েছে: নতুন সংস্করণ ব্যবহার করতে Coucou বন্ধ করে আবার খুলুন।",+ "pt-BR": "Instalada: feche e abra o Coucou de novo para usar a nova versão.",+ "ru": "Установлено: перезапустите Coucou, чтобы использовать новую версию.",+ "id": "Terpasang: tutup lalu buka lagi Coucou untuk memakai versi baru."+ },"Installing and starting…": {"zh-Hans": "正在安装并启动…","hi": "इंस्टॉल और चालू हो रहा है…",@@ -2730,6 +2862,17 @@"ru": "Установка и запуск…","id": "Memasang dan menjalankan…"},+ "Installing…": {+ "zh-Hans": "正在安装…",+ "hi": "इंस्टॉल हो रहा है…",+ "es": "Instalando…",+ "ar": "جارٍ التثبيت…",+ "fr": "Installation…",+ "bn": "ইনস্টল হচ্ছে…",+ "pt-BR": "Instalando…",+ "ru": "Установка…",+ "id": "Memasang…"+ },"Integrations": {"zh-Hans": "集成","hi": "एकीकरण",@@ -2873,6 +3016,17 @@"ru": "Последняя диктовка вставлена","id": "Dikte terakhir ditempel"},+ "Later": {+ "zh-Hans": "稍后",+ "hi": "बाद में",+ "es": "Más tarde",+ "ar": "لاحقًا",+ "fr": "Plus tard",+ "bn": "পরে",+ "pt-BR": "Depois",+ "ru": "Позже",+ "id": "Nanti"+ },"Launch at Mac startup": {"zh-Hans": "在 Mac 启动时自动启动","hi": "Mac स्टार्टअप पर लॉन्च करें",@@ -3247,6 +3401,17 @@"ru": "Мочи и ваш Mac","id": "Mochi dan Mac-mu"},+ "Mochi checks Coucou’s releases on GitHub a few times a day and tells you when one is out. Nothing about you is sent.": {+ "zh-Hans": "Mochi 每天会在 GitHub 上查看几次 Coucou 的版本,有新版本时告诉你。不会发送任何关于你的信息。",+ "hi": "Mochi दिन में कुछ बार GitHub पर Coucou के रिलीज़ देखता है और नया आने पर बताता है। आपके बारे में कुछ नहीं भेजा जाता।",+ "es": "Mochi revisa las versiones de Coucou en GitHub unas veces al día y te avisa cuando sale una. No se envía nada sobre ti.",+ "ar": "يتحقق Mochi من إصدارات Coucou على GitHub بضع مرات يوميًا ويخبرك عند صدور إصدار جديد. لا يُرسَل أي شيء عنك.",+ "fr": "Mochi regarde les versions de Coucou sur GitHub quelques fois par jour et te prévient quand il y en a une. Rien sur toi n’est envoyé.",+ "bn": "Mochi দিনে কয়েকবার GitHub-এ Coucou-র রিলিজ দেখে এবং নতুন এলে জানায়। আপনার সম্পর্কে কিছুই পাঠানো হয় না।",+ "pt-BR": "O Mochi verifica as versões do Coucou no GitHub algumas vezes por dia e avisa quando sai uma. Nada sobre você é enviado.",+ "ru": "Mochi несколько раз в день проверяет релизы Coucou на GitHub и сообщает о новых. О вас ничего не отправляется.",+ "id": "Mochi memeriksa rilis Coucou di GitHub beberapa kali sehari dan memberi tahu saat ada yang baru. Tidak ada data tentangmu yang dikirim."+ },"Mochi reacts to your Mac": {"zh-Hans": "Mochi 会对你的 Mac 做出反应","hi": "मोची आपके Mac पर प्रतिक्रिया देता है",@@ -3698,6 +3863,17 @@"ru": "Здесь нет текстового поля? Слова скопированы: щёлкните, куда нужно, и нажмите ⌘V.","id": "Tidak ada kolom teks di sini? Kata-katamu sudah disalin: klik di tempat yang kamu mau lalu tekan ⌘V."},+ "No thanks": {+ "zh-Hans": "不用了",+ "hi": "नहीं, धन्यवाद",+ "es": "No, gracias",+ "ar": "لا، شكرًا",+ "fr": "Non merci",+ "bn": "না, ধন্যবাদ",+ "pt-BR": "Não, obrigado",+ "ru": "Нет, спасибо",+ "id": "Tidak, terima kasih"+ },"No word yet. Add the names, brands and jargon Coucou gets wrong.": {"zh-Hans": "还没有词语。添加 Coucou 写错的名字、品牌和术语。","hi": "अभी कोई शब्द नहीं। वे नाम, ब्रांड और तकनीकी शब्द जोड़ें जिन्हें Coucou गलत लिखता है।",@@ -5073,6 +5249,17 @@"ru": "Перезапустить Coucou","id": "Mulai ulang Coucou"},+ "Restarting Coucou…": {+ "zh-Hans": "正在重启 Coucou…",+ "hi": "Coucou फिर से शुरू हो रहा है…",+ "es": "Reiniciando Coucou…",+ "ar": "جارٍ إعادة تشغيل Coucou…",+ "fr": "Redémarrage de Coucou…",+ "bn": "Coucou আবার চালু হচ্ছে…",+ "pt-BR": "Reiniciando o Coucou…",+ "ru": "Перезапуск Coucou…",+ "id": "Memulai ulang Coucou…"+ },"Retry": {"zh-Hans": "重试","hi": "पुनः प्रयास",@@ -5887,6 +6074,17 @@"ru": "Задачи","id": "Tugas"},+ "Tell me when a new version is out": {+ "zh-Hans": "有新版本时提醒我",+ "hi": "नया वर्ज़न आने पर बताएँ",+ "es": "Avisarme cuando salga una nueva versión",+ "ar": "أخبرني عند صدور إصدار جديد",+ "fr": "Me prévenir quand une nouvelle version sort",+ "bn": "নতুন সংস্করণ এলে জানাও",+ "pt-BR": "Me avisar quando sair uma nova versão",+ "ru": "Сообщать о выходе новой версии",+ "id": "Beri tahu saya saat ada versi baru"+ },"Test connection": {"zh-Hans": "测试连接","hi": "कनेक्शन जाँचें",@@ -5986,6 +6184,17 @@"ru": "Не удалось распаковать загрузку. Попробуйте снова.","id": "Unduhan tidak bisa diekstrak. Coba lagi."},+ "The download couldn’t be opened. Nothing was changed.": {+ "zh-Hans": "无法打开下载的文件。未做任何更改。",+ "hi": "डाउनलोड खुल नहीं सका। कुछ नहीं बदला गया।",+ "es": "No se pudo abrir la descarga. No se cambió nada.",+ "ar": "تعذّر فتح الملف المنزَّل. لم يتغير شيء.",+ "fr": "Le téléchargement n’a pas pu être ouvert. Rien n’a été modifié.",+ "bn": "ডাউনলোড খোলা যায়নি। কিছুই বদলানো হয়নি।",+ "pt-BR": "Não foi possível abrir o download. Nada foi alterado.",+ "ru": "Не удалось открыть загрузку. Ничего не изменено.",+ "id": "Unduhan tidak bisa dibuka. Tidak ada yang diubah."+ },"The download didn't go through. Check your connection and try again.": {"zh-Hans": "下载未完成。请检查网络后重试。","hi": "डाउनलोड पूरा नहीं हुआ। कनेक्शन जाँचकर फिर कोशिश करें।",@@ -6008,6 +6217,39 @@"ru": "Загрузка не совпадает с файлом, опубликованным GOWA: она удалена, ничего не установлено.","id": "Unduhan tidak cocok dengan file dari GOWA: sudah dihapus, tidak ada yang dipasang."},+ "The download failed. Try again, or get it on GitHub.": {+ "zh-Hans": "下载失败。请重试,或前往 GitHub 获取。",+ "hi": "डाउनलोड नहीं हुआ। फिर कोशिश करें, या GitHub से लें।",+ "es": "La descarga falló. Inténtalo de nuevo o descárgala en GitHub.",+ "ar": "فشل التنزيل. حاول مجددًا أو احصل عليه من GitHub.",+ "fr": "Le téléchargement a échoué. Réessaie, ou récupère-la sur GitHub.",+ "bn": "ডাউনলোড ব্যর্থ। আবার চেষ্টা করুন, অথবা GitHub থেকে নিন।",+ "pt-BR": "O download falhou. Tente de novo ou baixe no GitHub.",+ "ru": "Загрузка не удалась. Попробуйте снова или скачайте на GitHub.",+ "id": "Unduhan gagal. Coba lagi, atau ambil di GitHub."+ },+ "The download isn’t signed and notarized by Coucou’s developer, so it wasn’t installed.": {+ "zh-Hans": "下载的文件未经 Coucou 开发者签名和公证,因此未安装。",+ "hi": "डाउनलोड पर Coucou के डेवलपर का सिग्नेचर और नोटराइज़ेशन नहीं है, इसलिए इंस्टॉल नहीं किया गया।",+ "es": "La descarga no está firmada y notarizada por el desarrollador de Coucou, así que no se instaló.",+ "ar": "الملف المنزَّل غير موقَّع وموثَّق من مطوّر Coucou، لذا لم يُثبَّت.",+ "fr": "Le téléchargement n’est pas signé et notarisé par le développeur de Coucou : il n’a pas été installé.",+ "bn": "ডাউনলোডটি Coucou-র ডেভেলপারের স্বাক্ষরিত ও নোটারাইজড নয়, তাই ইনস্টল করা হয়নি।",+ "pt-BR": "O download não está assinado e notarizado pelo desenvolvedor do Coucou, então não foi instalado.",+ "ru": "Загрузка не подписана и не нотаризована разработчиком Coucou, поэтому не установлена.",+ "id": "Unduhan tidak ditandatangani dan dinotarisasi oleh pengembang Coucou, jadi tidak dipasang."+ },+ "The download isn’t the announced version of Coucou. Nothing was changed.": {+ "zh-Hans": "下载的不是公布的 Coucou 版本。未做任何更改。",+ "hi": "डाउनलोड Coucou का घोषित वर्ज़न नहीं है। कुछ नहीं बदला गया।",+ "es": "La descarga no es la versión anunciada de Coucou. No se cambió nada.",+ "ar": "الملف المنزَّل ليس إصدار Coucou المُعلَن. لم يتغير شيء.",+ "fr": "Le téléchargement n’est pas la version de Coucou annoncée. Rien n’a été modifié.",+ "bn": "ডাউনলোডটি ঘোষিত Coucou সংস্করণ নয়। কিছুই বদলানো হয়নি।",+ "pt-BR": "O download não é a versão anunciada do Coucou. Nada foi alterado.",+ "ru": "Загрузка — не объявленная версия Coucou. Ничего не изменено.",+ "id": "Unduhan bukan versi Coucou yang diumumkan. Tidak ada yang diubah."+ },"The gateway URL isn’t valid (http://…)": {"zh-Hans": "网关地址无效(http://…)","hi": "गेटवे URL मान्य नहीं है (http://…)",@@ -6162,6 +6404,17 @@"ru": "Не удалось составить расшифровку.","id": "Transkrip tidak dapat ditulis."},+ "The update didn’t go through": {+ "zh-Hans": "更新未完成",+ "hi": "अपडेट पूरा नहीं हुआ",+ "es": "La actualización no se completó",+ "ar": "لم يكتمل التحديث",+ "fr": "La mise à jour n’a pas abouti",+ "bn": "আপডেট সম্পন্ন হয়নি",+ "pt-BR": "A atualização não foi concluída",+ "ru": "Обновление не удалось",+ "id": "Pembaruan tidak berhasil"+ },"The words show up here as people speak.": {"zh-Hans": "大家说话时,文字会显示在这里。","hi": "लोगों के बोलते ही शब्द यहाँ दिखते हैं।",@@ -6448,6 +6701,17 @@"ru": "Обновить","id": "Perbarui"},+ "Update Coucou to {0}…": {+ "zh-Hans": "将 Coucou 更新到 {0}…",+ "hi": "Coucou को {0} पर अपडेट करें…",+ "es": "Actualizar Coucou a la {0}…",+ "ar": "تحديث Coucou إلى {0}…",+ "fr": "Mettre à jour Coucou vers la {0}…",+ "bn": "Coucou {0}-এ আপডেট করুন…",+ "pt-BR": "Atualizar o Coucou para a {0}…",+ "ru": "Обновить Coucou до {0}…",+ "id": "Perbarui Coucou ke {0}…"+ },"Update hooks": {"zh-Hans": "更新 Hooks","hi": "हुक अपडेट करें",@@ -6459,6 +6723,28 @@"ru": "Обновить хуки","id": "Perbarui hooks"},+ "Update now": {+ "zh-Hans": "立即更新",+ "hi": "अभी अपडेट करें",+ "es": "Actualizar ahora",+ "ar": "التحديث الآن",+ "fr": "Mettre à jour",+ "bn": "এখনই আপডেট",+ "pt-BR": "Atualizar agora",+ "ru": "Обновить",+ "id": "Perbarui sekarang"+ },+ "Updates": {+ "zh-Hans": "更新",+ "hi": "अपडेट",+ "es": "Actualizaciones",+ "ar": "التحديثات",+ "fr": "Mises à jour",+ "bn": "আপডেট",+ "pt-BR": "Atualizações",+ "ru": "Обновления",+ "id": "Pembaruan"+ },"Uploading {name}": {"zh-Hans": "正在上传 {name}","hi": "{name} अपलोड हो रहा है",@@ -6712,6 +6998,17 @@"ru": "WhatsApp (экспериментально)","id": "WhatsApp (eksperimental)"},+ "What’s new": {+ "zh-Hans": "新功能",+ "hi": "क्या नया है",+ "es": "Novedades",+ "ar": "ما الجديد",+ "fr": "Nouveautés",+ "bn": "নতুন কী",+ "pt-BR": "Novidades",+ "ru": "Что нового",+ "id": "Yang baru"+ },"When Coucou hears the words on the left, it writes the ones on the right.": {"zh-Hans": "Coucou 听到左边的词时,会写成右边的词。","hi": "जब Coucou बाईं ओर के शब्द सुनता है, तो दाईं ओर के शब्द लिखता है।",@@ -6976,6 +7273,17 @@"ru": "Пишется, напр. Claude Code","id": "Ditulis, mis. Claude Code"},+ "Yes, tell me": {+ "zh-Hans": "好的,提醒我",+ "hi": "हाँ, बताओ",+ "es": "Sí, avísame",+ "ar": "نعم، أخبرني",+ "fr": "Oui, préviens-moi",+ "bn": "হ্যাঁ, জানাও",+ "pt-BR": "Sim, me avise",+ "ru": "Да, сообщать",+ "id": "Ya, beri tahu saya"+ },"Yesterday": {"zh-Hans": "昨天","hi": "कल",@@ -6998,6 +7306,17 @@"ru": "Вы","id": "Kamu"},+ "You have {0}": {+ "zh-Hans": "当前版本 {0}",+ "hi": "आपके पास {0} है",+ "es": "Tienes la {0}",+ "ar": "لديك {0}",+ "fr": "Tu as la {0}",+ "bn": "আপনার কাছে {0}",+ "pt-BR": "Você tem a {0}",+ "ru": "У вас {0}",+ "id": "Kamu punya {0}"+ },"You say": {"zh-Hans": "你说","hi": "आप बोलते हैं",