Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
Run on macOS 13 Ventura (#302)
Youness Amzilfb7d34b9fce4
diff --git a/README.ko.md b/README.ko.mdindex 96f02c56..efa3c6c6 100644--- a/README.ko.md+++ b/README.ko.md@@ -53,7 +53,7 @@- **Windows 10/11**: `Filee-<version>-win-Setup.exe`를 실행하거나, `win-Portable.zip`을 풀고 `Filee.exe`를 실행해요.설치 프로그램은 Filee가 직접 만든 것이라 Filee와 같은 언어로 안내하고, PC에 따로 설치할 것이 없어요.설치할 때 탐색기 메뉴, 로그인 시 자동 실행, `filee` 명령, 추가 엔진을 고를 수 있어요.-- **macOS 14 이상** (미리보기): `osx-arm64` 또는 `osx-x64` 패키지를 풀고 `./install.sh`를 실행해요.+- **macOS 13 이상** (미리보기): `osx-arm64` 또는 `osx-x64` 패키지를 풀고 `./install.sh`를 실행해요.아직 공증 전이라, 처음 실행할 때 시스템 설정 → 개인정보 보호 및 보안 → **그래도 열기**로 허용해 주세요.- **Linux x64·ARM64** (미리보기, Ubuntu 22.04 이상): 패키지를 풀고 `./install.sh`를 실행해요(root 불필요, Python 3 필요).드래그 제스처는 X11에서 돼요. Wayland에서는 드롭 영역과 파일 관리자 우클릭 메뉴를 써 주세요.diff --git a/README.md b/README.mdindex 91e1c790..00d11964 100644--- a/README.md+++ b/README.md@@ -54,7 +54,7 @@ Download from [Releases](https://github.com/KnifeLemon/Filee/releases/latest).Setup is Filee's own installer, in Filee's languages, and needs nothing else on the PC. It can add the Explorermenu, start at sign-in, the `filee` command and optional engines; silent installs take Inno Setup's switches(`/VERYSILENT /SUPPRESSMSGBOXES`).-- **macOS 14+** (preview): unpack the `osx-arm64` or `osx-x64` package and run `./install.sh`.+- **macOS 13+** (preview): unpack the `osx-arm64` or `osx-x64` package and run `./install.sh`.The build isn't notarized yet, so allow the first start in System Settings → Privacy & Security → **Open Anyway**.- **Linux x64/ARM64** (preview, Ubuntu 22.04+): unpack the package and run `./install.sh` (no root, needs Python 3).Drag gestures need X11. On Wayland, use the drop zone and the file manager's right-click menu.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 29f7b814..f3508791 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -53,7 +53,7 @@- **Windows 10/11** 运行 `Filee-<version>-win-Setup.exe`,或解压 `win-Portable.zip` 后运行 `Filee.exe`。安装程序是 Filee 自己的,使用与 Filee 相同的语言,电脑上无需另外安装任何组件。安装时可以添加资源管理器菜单、登录时启动、`filee` 命令和可选引擎。-- **macOS 14 及以上**(预览)解压 `osx-arm64` 或 `osx-x64` 包并运行 `./install.sh`。+- **macOS 13 及以上**(预览)解压 `osx-arm64` 或 `osx-x64` 包并运行 `./install.sh`。目前尚未公证,首次启动时请在系统设置 → 隐私与安全性中点 **仍要打开**。- **Linux x64、ARM64**(预览,Ubuntu 22.04 及以上)解压后运行 `./install.sh`(无需 root,需要 Python 3)。拖动手势需要 X11,Wayland 下请使用拖放区域和文件管理器的右键菜单。diff --git a/docs/ENGINES.md b/docs/ENGINES.mdindex dbdb285b..8969088d 100644--- a/docs/ENGINES.md+++ b/docs/ENGINES.md@@ -77,7 +77,8 @@ they can be installed or removed later in Settings → *Engines*. A conversion t"Needs LibreOffice …" on its donut slice.- Downloads are pinned in `src/Filee.Engines/Infrastructure/engines.json` (URL, SHA-256, size). The same file is- read by `build/fetch-engines.ps1`, so development and the app always use the same versions.+ read by `build/fetch-engines.ps1`, so development and the app always use the same versions. A macOS download can+ name the oldest macOS it runs on (`minimumMacOS`); an older Mac isn't offered it.- `EngineInstaller` verifies the SHA-256 before unpacking and unpacks into a staging folder that replaces theengine folder only when complete. Redirects to mirrors (even plain HTTP) are followed, because the hash decides.- Engines go to `%LOCALAPPDATA%\Filee\engines`: outside the app folder, so updates keep them, and inside Filee's@@ -1063,6 +1064,9 @@ never switches engines by itself.- The pinned `calibre-64bit-<version>.msi` from download.calibre-ebook.com is unpacked like LibreOffice; the folderwith `ebook-convert.exe` becomes `engines/calibre`.+- On macOS the pinned calibre needs macOS 14 (`minimumMacOS` in engines.json). Filee runs on macOS 13, where the+ download isn't offered; Settings → *Engines* points to calibre 7.26, the last version for macOS 13, as the user's+ own copy.- Each run gets its own configuration, cache and temp folders in the job's work directory(`CALIBRE_CONFIG_DIRECTORY`, ...), so a calibre the user installed is never read or changed; messages areEnglish (`CALIBRE_OVERRIDE_LANG`) and progress comes from its "34% ..." lines.diff --git a/installer/macos/INSTALL.txt b/installer/macos/INSTALL.txtindex 90352be9..133f50fe 100644--- a/installer/macos/INSTALL.txt+++ b/installer/macos/INSTALL.txt@@ -1,4 +1,4 @@-This package requires macOS 14 or later and contains a separate build for+This package requires macOS 13 or later and contains a separate build forApple Silicon or Intel Macs. The .NET runtime is included.Run ./install.sh to copy Filee.app to ~/Applications and add ~/.local/bin/filee.You can also move Filee.app into Applications manually. Keep its location stablediff --git a/installer/macos/Info.plist b/installer/macos/Info.plistindex 9b8e46e8..2966c7eb 100644--- a/installer/macos/Info.plist+++ b/installer/macos/Info.plist@@ -12,7 +12,7 @@<key>CFBundleShortVersionString</key><string>__VERSION__</string><key>CFBundleVersion</key><string>__BUNDLE_VERSION__</string><key>CFBundleIconFile</key><string>filee.icns</string>- <key>LSMinimumSystemVersion</key><string>14.0</string>+ <key>LSMinimumSystemVersion</key><string>13.0</string><key>NSHighResolutionCapable</key><true/><!-- "Convert with Filee" in Finder's right-click menu, answered by the running Filee (MacOSServicesProvider).ServicesMenu.strings in ko.lproj and zh-Hans.lproj translate the title. An empty NSRequiredContext keepsdiff --git a/src/Filee.App/Assets/i18n/en.json b/src/Filee.App/Assets/i18n/en.jsonindex d330b506..747bc5b6 100644--- a/src/Filee.App/Assets/i18n/en.json+++ b/src/Filee.App/Assets/i18n/en.json@@ -644,6 +644,7 @@"engines.guidance.macos": "Install {0} for this Mac, then choose “Use my copy…” and select its program or .app folder.","engines.guidance.macos.ffmpeg": "Install it with Homebrew (brew install ffmpeg), then choose “Check again”.\nOr choose “Use my copy…” and select its bin folder.","engines.guidance.macos.ghostscript": "Install it with Homebrew (brew install ghostscript), then choose “Check again”.\nOr choose “Use my copy…” and select its bin folder.",+ "engines.guidance.macos.calibre": "The calibre Filee downloads needs macOS 14 or later. Install calibre 7.26, the last version for this macOS, from calibre-ebook.com, then choose “Use my copy…” and select its .app folder.","engines.guidance.linux": "Install {0} with your distribution’s package manager, then choose “Use my copy…” and select its program folder.","engines.guidance.linux.libreoffice": "Install it with your package manager (Ubuntu/Debian: sudo apt install libreoffice), then choose “Check again”.\nOpening HWP also needs Java and the H2Orestart extension.","engines.guidance.linux.ghostscript": "Install it with your package manager (Ubuntu/Debian: sudo apt install ghostscript), then choose “Check again”.",diff --git a/src/Filee.App/Assets/i18n/es.json b/src/Filee.App/Assets/i18n/es.jsonindex 0f843f7d..dafa87f9 100644--- a/src/Filee.App/Assets/i18n/es.json+++ b/src/Filee.App/Assets/i18n/es.json@@ -627,6 +627,7 @@"engines.guidance.macos": "Instala {0} para este Mac y luego elige «Usar mi copia…» y selecciona su programa o su carpeta .app.","engines.guidance.macos.ffmpeg": "Instálalo con Homebrew (brew install ffmpeg) y luego elige «Comprobar otra vez».\nO bien elige «Usar mi copia…» y selecciona su carpeta bin.","engines.guidance.macos.ghostscript": "Instálalo con Homebrew (brew install ghostscript) y luego elige «Comprobar otra vez».\nO bien elige «Usar mi copia…» y selecciona su carpeta bin.",+ "engines.guidance.macos.calibre": "El calibre que descarga Filee necesita macOS 14 o posterior. Instala calibre 7.26, la última versión para este macOS, desde calibre-ebook.com y luego elige «Usar mi copia…» y selecciona su carpeta .app.","engines.guidance.linux": "Instala {0} con el gestor de paquetes de tu distribución y luego elige «Usar mi copia…» y selecciona su carpeta de programa.","engines.guidance.linux.libreoffice": "Instálalo con tu gestor de paquetes (Ubuntu/Debian: sudo apt install libreoffice) y luego elige «Comprobar otra vez».\nAbrir HWP necesita además Java y la extensión H2Orestart.","engines.guidance.linux.ghostscript": "Instálalo con tu gestor de paquetes (Ubuntu/Debian: sudo apt install ghostscript) y luego elige «Comprobar otra vez».",diff --git a/src/Filee.App/Assets/i18n/hi.json b/src/Filee.App/Assets/i18n/hi.jsonindex 37b4d86e..5d979a4a 100644--- a/src/Filee.App/Assets/i18n/hi.json+++ b/src/Filee.App/Assets/i18n/hi.json@@ -627,6 +627,7 @@"engines.guidance.macos": "इस Mac के लिए {0} इंस्टॉल करें, फिर “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका प्रोग्राम या .app फ़ोल्डर चुनें।","engines.guidance.macos.ffmpeg": "इसे Homebrew से इंस्टॉल करें (brew install ffmpeg), फिर “फिर से जाँचें” चुनें।\nया “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका bin फ़ोल्डर चुनें।","engines.guidance.macos.ghostscript": "इसे Homebrew से इंस्टॉल करें (brew install ghostscript), फिर “फिर से जाँचें” चुनें।\nया “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका bin फ़ोल्डर चुनें।",+ "engines.guidance.macos.calibre": "Filee जो calibre डाउनलोड करता है, उसके लिए macOS 14 या नया चाहिए। calibre-ebook.com से calibre 7.26 इंस्टॉल करें (इस macOS के लिए आख़िरी वर्ज़न), फिर “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका .app फ़ोल्डर चुनें।","engines.guidance.linux": "अपने डिस्ट्रीब्यूशन के पैकेज मैनेजर से {0} इंस्टॉल करें, फिर “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका प्रोग्राम फ़ोल्डर चुनें।","engines.guidance.linux.libreoffice": "इसे अपने पैकेज मैनेजर से इंस्टॉल करें (Ubuntu/Debian: sudo apt install libreoffice), फिर “फिर से जाँचें” चुनें।\nHWP खोलने के लिए Java और H2Orestart एक्सटेंशन भी चाहिए।","engines.guidance.linux.ghostscript": "इसे अपने पैकेज मैनेजर से इंस्टॉल करें (Ubuntu/Debian: sudo apt install ghostscript), फिर “फिर से जाँचें” चुनें।",diff --git a/src/Filee.App/Assets/i18n/ja.json b/src/Filee.App/Assets/i18n/ja.jsonindex 4690c251..508e2c9e 100644--- a/src/Filee.App/Assets/i18n/ja.json+++ b/src/Filee.App/Assets/i18n/ja.json@@ -627,6 +627,7 @@"engines.guidance.macos": "このMacに{0}をインストールし、「手元のプログラムを使う…」を選んで、プログラムまたは.appフォルダーを指定してください。","engines.guidance.macos.ffmpeg": "Homebrewでffmpegをインストール(brew install ffmpeg)してから、「再確認」を選んでください。\nまたは「手元のプログラムを使う…」を選び、binフォルダーを指定してください。","engines.guidance.macos.ghostscript": "Homebrewでghostscriptをインストール(brew install ghostscript)してから、「再確認」を選んでください。\nまたは「手元のプログラムを使う…」を選び、binフォルダーを指定してください。",+ "engines.guidance.macos.calibre": "FileeがダウンロードするcalibreにはmacOS 14以降が必要です。calibre-ebook.comからこのmacOS用の最終版calibre 7.26をインストールし、「手元のプログラムを使う…」を選んで.appフォルダーを指定してください。","engines.guidance.linux": "ディストリビューションのパッケージマネージャーで{0}をインストールしてから、「手元のプログラムを使う…」を選び、プログラムのフォルダーを指定してください。","engines.guidance.linux.libreoffice": "パッケージマネージャーでインストール(Ubuntu/Debian:sudo apt install libreoffice)してから、「再確認」を選んでください。\nHWPを開くには、JavaとH2Orestart拡張機能も必要です。","engines.guidance.linux.ghostscript": "パッケージマネージャーでインストール(Ubuntu/Debian:sudo apt install ghostscript)してから、「再確認」を選んでください。",diff --git a/src/Filee.App/Assets/i18n/ko.json b/src/Filee.App/Assets/i18n/ko.jsonindex ce428a90..4d0f1ef6 100644--- a/src/Filee.App/Assets/i18n/ko.json+++ b/src/Filee.App/Assets/i18n/ko.json@@ -644,6 +644,7 @@"engines.guidance.macos": "이 Mac에 {0}을(를) 설치한 뒤 “내 프로그램 쓰기…”로 프로그램이나 .app 폴더를 선택해 주세요.","engines.guidance.macos.ffmpeg": "Homebrew로 설치(brew install ffmpeg)한 뒤 “다시 확인”을 누르세요.\n또는 “내 프로그램 쓰기…”로 bin 폴더를 고르세요.","engines.guidance.macos.ghostscript": "Homebrew로 설치(brew install ghostscript)한 뒤 “다시 확인”을 누르세요.\n또는 “내 프로그램 쓰기…”로 bin 폴더를 고르세요.",+ "engines.guidance.macos.calibre": "Filee가 받는 calibre는 macOS 14 이상이 필요해요. calibre-ebook.com에서 이 macOS용 마지막 버전인 calibre 7.26을 설치한 뒤 “내 프로그램 쓰기…”로 .app 폴더를 선택해 주세요.","engines.guidance.linux": "배포판의 패키지 관리자로 {0}을(를) 설치한 뒤 “내 프로그램 쓰기…”로 프로그램 폴더를 선택해 주세요.","engines.guidance.linux.libreoffice": "패키지 관리자로 설치(Ubuntu/Debian: sudo apt install libreoffice)한 뒤 “다시 확인”을 누르세요.\nHWP를 열려면 Java와 H2Orestart 확장도 필요해요.","engines.guidance.linux.ghostscript": "패키지 관리자로 설치(Ubuntu/Debian: sudo apt install ghostscript)한 뒤 “다시 확인”을 누르세요.",diff --git a/src/Filee.App/Assets/i18n/pl.json b/src/Filee.App/Assets/i18n/pl.jsonindex ac894ba8..da99ac17 100644--- a/src/Filee.App/Assets/i18n/pl.json+++ b/src/Filee.App/Assets/i18n/pl.json@@ -644,6 +644,7 @@"engines.guidance.macos": "Zainstaluj {0} dla tego Maca, potem wybierz „Użyj mojej kopii…” i wskaż jego program lub folder .app.","engines.guidance.macos.ffmpeg": "Zainstaluj przez Homebrew (brew install ffmpeg), potem wybierz „Sprawdź ponownie”.\nAlbo wybierz „Użyj mojej kopii…” i wskaż folder bin.","engines.guidance.macos.ghostscript": "Zainstaluj przez Homebrew (brew install ghostscript), potem wybierz „Sprawdź ponownie”.\nAlbo wybierz „Użyj mojej kopii…” i wskaż folder bin.",+ "engines.guidance.macos.calibre": "calibre pobierane przez Filee wymaga macOS 14 lub nowszego. Zainstaluj calibre 7.26, ostatnią wersję dla tego macOS, ze strony calibre-ebook.com, potem wybierz „Użyj mojej kopii…” i wskaż jego folder .app.","engines.guidance.linux": "Zainstaluj {0} menedżerem pakietów swojej dystrybucji, potem wybierz „Użyj mojej kopii…” i wskaż folder programu.","engines.guidance.linux.libreoffice": "Zainstaluj menedżerem pakietów (Ubuntu/Debian: sudo apt install libreoffice), potem wybierz „Sprawdź ponownie”.\nOtwieranie HWP wymaga też Javy i rozszerzenia H2Orestart.","engines.guidance.linux.ghostscript": "Zainstaluj menedżerem pakietów (Ubuntu/Debian: sudo apt install ghostscript), potem wybierz „Sprawdź ponownie”.",diff --git a/src/Filee.App/Assets/i18n/ru.json b/src/Filee.App/Assets/i18n/ru.jsonindex ed0511bd..749bac07 100644--- a/src/Filee.App/Assets/i18n/ru.json+++ b/src/Filee.App/Assets/i18n/ru.json@@ -644,6 +644,7 @@"engines.guidance.macos": "Установите {0} для этого Mac, затем выберите «Использовать свою копию…» и укажите программу или папку .app.","engines.guidance.macos.ffmpeg": "Установите через Homebrew (brew install ffmpeg), затем выберите «Проверить снова».\nИли выберите «Использовать свою копию…» и укажите папку bin.","engines.guidance.macos.ghostscript": "Установите через Homebrew (brew install ghostscript), затем выберите «Проверить снова».\nИли выберите «Использовать свою копию…» и укажите папку bin.",+ "engines.guidance.macos.calibre": "Для calibre, которую скачивает Filee, нужна macOS 14 или новее. Установите calibre 7.26, последнюю версию для этой macOS, с calibre-ebook.com, затем выберите «Использовать свою копию…» и укажите её папку .app.","engines.guidance.linux": "Установите {0} менеджером пакетов вашего дистрибутива, затем выберите «Использовать свою копию…» и укажите папку программы.","engines.guidance.linux.libreoffice": "Установите менеджером пакетов (Ubuntu/Debian: sudo apt install libreoffice), затем выберите «Проверить снова».\nДля открытия HWP также нужны Java и расширение H2Orestart.","engines.guidance.linux.ghostscript": "Установите менеджером пакетов (Ubuntu/Debian: sudo apt install ghostscript), затем выберите «Проверить снова».",diff --git a/src/Filee.App/Assets/i18n/zh-CN.json b/src/Filee.App/Assets/i18n/zh-CN.jsonindex b830cc4e..a131f394 100644--- a/src/Filee.App/Assets/i18n/zh-CN.json+++ b/src/Filee.App/Assets/i18n/zh-CN.json@@ -644,6 +644,7 @@"engines.guidance.macos": "先在这台 Mac 上安装 {0},再点“使用我的程序…”选择它的程序或 .app 文件夹。","engines.guidance.macos.ffmpeg": "用 Homebrew 安装(brew install ffmpeg)后点“重新检查”。\n或点“使用我的程序…”选择它的 bin 文件夹。","engines.guidance.macos.ghostscript": "用 Homebrew 安装(brew install ghostscript)后点“重新检查”。\n或点“使用我的程序…”选择它的 bin 文件夹。",+ "engines.guidance.macos.calibre": "Filee 下载的 calibre 需要 macOS 14 或更高版本。请从 calibre-ebook.com 安装适用于此 macOS 的最后一个版本 calibre 7.26,再点“使用我的程序…”选择它的 .app 文件夹。","engines.guidance.linux": "用发行版的软件包管理器安装 {0},再点“使用我的程序…”选择它的程序文件夹。","engines.guidance.linux.libreoffice": "用软件包管理器安装(Ubuntu/Debian 下运行 sudo apt install libreoffice)后点“重新检查”。\n打开 HWP 还需要 Java 和 H2Orestart 扩展。","engines.guidance.linux.ghostscript": "用软件包管理器安装(Ubuntu/Debian 下运行 sudo apt install ghostscript)后点“重新检查”。",diff --git a/src/Filee.Engines/Infrastructure/EngineDownloads.cs b/src/Filee.Engines/Infrastructure/EngineDownloads.csindex 7dc3916e..7ae3e302 100644--- a/src/Filee.Engines/Infrastructure/EngineDownloads.cs+++ b/src/Filee.Engines/Infrastructure/EngineDownloads.cs@@ -26,7 +26,12 @@ public static class EngineDownloads(OperatingSystem.IsWindows() ? "win" : OperatingSystem.IsMacOS() ? "osx" : OperatingSystem.IsLinux() ? "linux" : "unknown")+ "-" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();- public static IReadOnlyDictionary<string, EngineComponent> Components { get; } = ComponentsForRuntime(RuntimeIdentifier);+ /// <summary>+ /// The downloads for this computer. On a Mac older than a download's minimumMacOS (calibre 9 needs macOS 14) that+ /// download is left out, so the package is offered like one Filee has no download of.+ /// </summary>+ public static IReadOnlyDictionary<string, EngineComponent> Components { get; } =+ ComponentsForRuntime(RuntimeIdentifier, OperatingSystem.IsMacOS() ? Environment.OSVersion.Version : null);/// <summary>/// Packages offered in Settings → Engines and on first run. rhwp and 7-Zip are not listed: they are small and bundled.@@ -55,6 +60,7 @@ public static class EngineDownloads{"ffmpeg" => "Install FFmpeg with Homebrew (brew install ffmpeg), then check again or select its bin folder.","ghostscript" => "Install Ghostscript with Homebrew (brew install ghostscript), then check again or select its bin folder.",+ "calibre" => "The calibre Filee downloads needs macOS 14 or later. Install calibre 7.26 from calibre-ebook.com and select its .app folder.",_ => $"No Filee download is available for {RuntimeIdentifier}. Install {package.Id} for this Mac and select its program or .app folder.",};if (OperatingSystem.IsLinux())@@ -78,7 +84,8 @@ public static class EngineDownloads/// </summary>public static bool IsSuggested(EnginePackage package) => CanDownload(package) && DownloadSize(package) < SuggestLimit && package.Id != "ghostscript";- public static IReadOnlyDictionary<string, EngineComponent> ComponentsForRuntime(string runtimeIdentifier)+ /// <param name="macOSVersion">The running macOS; downloads whose minimumMacOS is newer are left out. Null keeps all.</param>+ public static IReadOnlyDictionary<string, EngineComponent> ComponentsForRuntime(string runtimeIdentifier, Version? macOSVersion = null){using var stream = typeof(EngineDownloads).Assembly.GetManifestResourceStream("Filee.Engines.engines.json")?? throw new InvalidOperationException("Embedded engines.json is missing.");@@ -91,7 +98,7 @@ public static class EngineDownloadscomponents = platform.GetProperty("components");elsereturn new Dictionary<string, EngineComponent>();- return components.EnumerateObject().ToDictionary(+ return components.EnumerateObject().Where(p => RunsOn(p.Value, macOSVersion)).ToDictionary(p => p.Name,p => new EngineComponent(p.Name,@@ -101,4 +108,8 @@ public static class EngineDownloadsp.Value.GetProperty("size").GetInt64(),p.Value.GetProperty("kind").GetString()!));}++ private static bool RunsOn(JsonElement component, Version? macOSVersion) =>+ macOSVersion is null || !component.TryGetProperty("minimumMacOS", out var minimum)+ || macOSVersion >= Version.Parse(minimum.GetString()!);}diff --git a/src/Filee.Engines/Infrastructure/engines.json b/src/Filee.Engines/Infrastructure/engines.jsonindex a9bb5511..6be3c151 100644--- a/src/Filee.Engines/Infrastructure/engines.json+++ b/src/Filee.Engines/Infrastructure/engines.json@@ -1,5 +1,5 @@{- "_comment": "Downloadable conversion engines: pinned URL + SHA-256. Used by the app (Settings > Engines, first-run setup) and by build/fetch-engines.ps1. Bumping a version = change url, sha256 and size together.",+ "_comment": "Downloadable conversion engines: pinned URL + SHA-256. Used by the app (Settings > Engines, first-run setup) and by build/fetch-engines.ps1. Bumping a version = change url, sha256 and size together. minimumMacOS: the oldest macOS a macOS download runs on; older Macs are not offered it.","components": {"rhwp": {"version": "0.8.7",@@ -179,7 +179,8 @@"url": "https://download.calibre-ebook.com/9.15.0/calibre-9.15.0.dmg","sha256": "1B3A7451175B73AE2BAA28FE1BC1C53EE34D65B489881E7EC02C20F9E0FF6019","size": 350293492,- "kind": "dmg"+ "kind": "dmg",+ "minimumMacOS": "14.0"},"libreoffice": {"version": "26.2.6",@@ -218,7 +219,8 @@"url": "https://download.calibre-ebook.com/9.15.0/calibre-9.15.0.dmg","sha256": "1B3A7451175B73AE2BAA28FE1BC1C53EE34D65B489881E7EC02C20F9E0FF6019","size": 350293492,- "kind": "dmg"+ "kind": "dmg",+ "minimumMacOS": "14.0"},"libreoffice": {"version": "26.2.6",diff --git a/tests/Filee.Engines.Tests/PortableEngineTests.cs b/tests/Filee.Engines.Tests/PortableEngineTests.csindex b6e90cdf..8903c05f 100644--- a/tests/Filee.Engines.Tests/PortableEngineTests.cs+++ b/tests/Filee.Engines.Tests/PortableEngineTests.cs@@ -37,6 +37,20 @@ public sealed class PortableEngineTests : IDisposableAssert.Contains(arch, components["rhwp"].Url);}+ [Theory]+ [InlineData("osx-x64")]+ [InlineData("osx-arm64")]+ public void A_Mac_older_than_a_downloads_minimum_is_not_offered_it(string runtime)+ {+ // calibre 9 needs macOS 14; the other downloads run on macOS 13, Filee's minimum.+ var ventura = EngineDownloads.ComponentsForRuntime(runtime, new Version(13, 6, 1));+ Assert.DoesNotContain("calibre", ventura.Keys);+ Assert.Contains("libreoffice", ventura.Keys);+ Assert.Contains("pandoc", ventura.Keys);+ Assert.Contains("calibre", EngineDownloads.ComponentsForRuntime(runtime, new Version(14, 0, 0)).Keys);+ Assert.Equal(EngineDownloads.ComponentsForRuntime(runtime).Count, EngineDownloads.ComponentsForRuntime(runtime, new Version(26, 0)).Count);+ }+[Fact]public void Unknown_platforms_cannot_fall_back_to_Windows_downloads() =>Assert.Empty(EngineDownloads.ComponentsForRuntime("linux-riscv64"));