Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Update Peel with Sparkle
Țugui Dragoș84e49c28d831
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.ymlindex 8a7a7bc5..ce9c4063 100644--- a/.github/workflows/checks.yml+++ b/.github/workflows/checks.yml@@ -52,6 +52,10 @@ jobs:exit 1fi+ # Sparkle, which updates Peel, is built from its source at the commit the script names, with arm64e.+ - name: Build Sparkle+ run: zsh Scripts/build_sparkle.sh+- name: Build the apprun: |xcodebuild -project Peel.xcodeproj -scheme Peel -configuration Debug \@@ -66,20 +70,29 @@ jobs:xcodebuild -project Peel.xcodeproj -scheme Peel -configuration Release \-derivedDataPath build/Release CODE_SIGNING_ALLOWED=NO ENABLE_POINTER_AUTHENTICATION=YES \MACOSX_DEPLOYMENT_TARGET=26.0 build- for binary in MacOS/Peel MacOS/PeelHelper Helpers/peel PlugIns/PeelFinder.appex/Contents/MacOS/PeelFinder; do- path="build/Release/Build/Products/Release/Peel.app/Contents/$binary"+ app=build/Release/Build/Products/Release/Peel.app+ # Every program and library in the app, found rather than listed, so one added later is checked too.+ checked=0+ while IFS= read -r -d '' path; do+ case "$(file -b "$path")" in Mach-O*) ;; *) continue ;; esac+ checked=$((checked + 1))archs=$(lipo -archs "$path")for arch in arm64e arm64 x86_64; docase " $archs " in*" $arch "*) ;;- *) echo "::error::$binary is built for $archs, without $arch."; exit 1 ;;+ *) echo "::error::$path is built for $archs, without $arch."; exit 1 ;;esacdoneflags=$(otool -arch arm64e -s __DATA_CONST __objc_imageinfo "$path" | awk 'END { print $3 }')if [ -z "$flags" ] || [ $(( 0x$flags & 0x10 )) -eq 0 ]; then- echo "::error::$binary has its class data unsigned."; exit 1+ echo "::error::$path has its class data unsigned."; exit 1fi- done+ done < <(find "$app" -type f -perm +111 -print0)+ # Peel's four programs and Sparkle's three.+ if [ "$checked" -lt 7 ]; then echo "::error::Only $checked programs were found in the app."; exit 1; fi+ if [ -n "$(find "$app/Contents/Frameworks/Sparkle.framework" -name '*.xpc')" ]; then+ echo "::error::Sparkle.framework carries XPC services."; exit 1+ fi# The accessibility audit drives the pointer, so it runs by hand before a release. Here it is only built.- name: Build the accessibility auditdiff --git a/AGENTS.md b/AGENTS.mdindex 9538bf94..eb7c26d7 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -98,7 +98,8 @@ Tests enforce these rules. If a change makes one of them fail, the rule is right- **Duplicates always keep at least one copy**, and refuse a file that changed since the scan.- **An update check sends no more than [PRIVACY.md](PRIVACY.md) says.** A feed request carries Peel's name and nolanguage, a redirect is followed only to https, the session keeps no cache or cookie a server could read back,- and Apple is asked only about an app bought from the App Store (`UpdatePrivacyTests`).+ and Apple is asked only about an app bought from the App Store (`UpdatePrivacyTests`). Peel's own check, through+ Sparkle, carries Peel's name and no language, and Peel takes no cookie (`PeelUpdater`).- **No code reads macOS's privacy database.** What macOS records about privacy is not API, and from macOS 27 appscan't read it, so App Management is learned from what a removal shows, on every macOS (`PrivateDatabaseTests`).- **What can't be read is unknown, never empty or zero.** A folder macOS won't let Peel read, or one that doesn'tdiff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex 296ff9d5..1fa836a4 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -233,6 +233,11 @@ macOS asks the user to approve it once. It talks to the app over XPC.(`ZshRequirements`), Git its keys (`git help --config`), and ssh accepts the options on its own command line.The Tools tab installs nothing: `TerminalTool` gives each tool's Homebrew formulae and the lines itsdocumentation gives, and Homebrew is asked whether it still offers them.+- **Peel's own updates.** Sparkle, built from its source by `Scripts/build_sparkle.sh`, reads Peel's signed feed+ on GitHub (`PeelUpdater`) and installs a new version only when the person chooses it, once the update is signed+ with Peel's update key. What it may do is set in the Info.plist, the one place Sparkle reads its security+ settings from. It asks on its own only while Check for app updates is on (`OwnUpdateCheck`), and the update+ round of the other apps passes over Peel.- **Watching the Trash.** `TrashMonitor` notices an app the user moves to the Trash: the home's, and the Trash ofeach other disk Peel lists apps on (`VolumeTrashes`), where an app thrown away from that disk lands. `TrashService`tells it about Peel's own moves (`OwnTrashMoves`), by where each item landed, so Peel never offers to clean up@@ -277,8 +282,9 @@ where a Homebrew install takes them from.| `~/Library/Application Support/Peel/` `*.lock` | The lock beside each file the app and `peel` both change, so a read and the write after it are one step (`FileLock`). || `~/Library/Application Support/Peel/` `*-damaged-*` | A file of Peel's that could not be read, set aside under another name so the next save doesn't overwrite it (`DamagedFile`). || `~/Library/Logs/Peel/<name>` | What the app measured while `PEEL_MEASURE=<name>` was set. |+| `~/Library/Caches/com.tuguidragos.Peel/org.sparkle-project.Sparkle/` | Sparkle's download of an update the user chose to install, and what it prepares to install it. || `/private/var/db/com.tuguidragos.Peel.Helper/` | The helper's ledger of what it moved. |-| Peel's preferences | Settings, the day Peel was installed, what each tool found the last time it looked, the last answer of each update check, and what the tweaks, Terminal, and Git held before Peel changed them, so turning a setting off puts that back. |+| Peel's preferences | Settings, the day Peel was installed, what each tool found the last time it looked, the last answer of each update check, when Sparkle last looked for a new Peel, and what the tweaks, Terminal, and Git held before Peel changed them, so turning a setting off puts that back. || Outside Peel's own files | `~/.hushlogin` from the Terminal page; the Dock's two lists of icons (`persistent-apps` and `recent-apps`, through `DockTiles`); the settings Tweaks changes; Terminal's profiles and options; Git's settings; and the Time Machine mark on each folder Build Artifacts leaves out of backups. |Remove Peel, in Settings, takes all of Peel's own files to the Trash but `Terminal/`, the settings zsh and ssh read@@ -314,9 +320,11 @@ checks the result with Gatekeeper, and prints the path and SHA-256 of `Peel-<ver`Peel-<version>.zip`, for Homebrew. The disk image is signed, notarized, and stapled too. It opens on a window ofthe album's paper with an arc from Peel to Applications, which `Scripts/make_dmg.sh` lays out with dmgbuild, run byuv, so nothing drives Finder; the background carries no words, since Finder writes the names in each Mac's language.-It starts only from a committed tree whose package tests pass with warnings as errors, and it refuses a build in-which any of the four programs can be debugged, lacks any of its arm64e, arm64, and x86_64 slices, or has its class-data unsigned, in which a language is missing, or which `syspolicy_check distribution` says macOS would not open.+It starts only from a committed tree whose package tests pass with warnings as errors, builds Sparkle from its source,+and refuses a build in which any of the four programs can be debugged, in which any program, Sparkle's included, is+not signed with Peel's Developer ID, the hardened runtime, and a secure timestamp, lacks any of its arm64e, arm64, and+x86_64 slices, or has its class data unsigned, in which Sparkle carries its XPC services, in which a language is+missing, or which `syspolicy_check distribution` says macOS would not open.Before it runs, the version is set by hand in each of the project's targets: `MARKETING_VERSION`, and`CURRENT_PROJECT_VERSION`, the build every program carries, written as the year, month, and day it was set (261008),diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 83c6e38f..20ef29bb 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -20,9 +20,12 @@ fixed, and checked where it shows, as [AGENTS.md](AGENTS.md) describes step by sXcode, and leave that change out of your commits. launchd starts the helper only as the team named in`Support/com.tuguidragos.Peel.Helper.plist` (`SpawnConstraint`), so to install the helper you build, put your teamthere as well, again outside your commits. The package's tests need no signing.-- Nothing else. The only dependency is Apple's swift-argument-parser, which Xcode fetches.+- Two dependencies: Apple's swift-argument-parser, which Xcode fetches, and Sparkle, which updates Peel. Sparkle is+ built from its source, at the commit `Scripts/build_sparkle.sh` names, with arm64e and without its XPC services: run+ the script once before the first build, and again when that commit changes.```bash+zsh Scripts/build_sparkle.shxcodebuild -project Peel.xcodeproj -scheme Peel -configuration Debug -derivedDataPath build/DerivedData DEVELOPMENT_TEAM=YOUR_TEAM_ID build```diff --git a/GUIDE.md b/GUIDE.mdindex 167bc080..5882f9f5 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -245,7 +245,7 @@ and takes you straight to the right place in System Settings.| Full Disk Access | Look inside the Trash and the private folders where apps keep their data. Without it, Peel can't find everything an app leaves behind. || App Management | Move another developer's app to the Trash. Without it, Peel can still clear an app's files, but macOS may refuse to move the app itself. || Helper | Move the leftovers that sit in folders only an administrator can change, and put them back, and start, stop, enable, or disable other developers' background items that run as root. It answers administrators only. macOS asks you to approve it once in Login Items & Extensions, and an update of Peel brings its new helper with it. |-| Notifications (optional) | Tell you when your apps have updates, when a new version of Peel is out, when Homebrew finishes an upgrade or runs into a problem, when your disk is almost full if you turn that warning on, and, with Watch the Trash on, when you move an app to the Trash yourself. |+| Notifications (optional) | Tell you when your apps have updates, when Homebrew finishes an upgrade or runs into a problem, when your disk is almost full if you turn that warning on, and, with Watch the Trash on, when you move an app to the Trash yourself. || Folders macOS asks about | Without Full Disk Access, macOS asks the first time Peel looks in Desktop, Documents, or Downloads for installers, duplicates, and what builds left, inside another app's data for what it would leave behind, or at your cloud folders to measure them. || Finder extension (optional) | Add Uninstall with Peel to the menu you get when you Control-click an app in Finder. || Open at Login (optional) | Start Peel when you log in. With Show in Menu Bar on, it keeps running after you close its window, so Watch the Trash keeps working. |@@ -313,6 +313,12 @@ see everything an app leaves behind. [PRIVACY.md](PRIVACY.md) lists the only timYes. Peel is free and open source under the GNU General Public License, with no paid edition, no ads, and noaccount.+### How does Peel update itself?++Choose Check for Updates… in the Peel menu, or Install Update… in About Peel when it says a new version is out. While+Check for app updates is on, Peel also looks once a day. It shows what is new and installs the update only when you+choose, once it has checked that the update is signed as Peel's.+### Something in Peel isn't clear. Where can I read more?Click the ⓘ next to its name. If it's still not clear,diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 2309910c..17afc32d 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -21827,6 +21827,112 @@}}},+ "Check for Updates…" : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vyhledat aktualizaci…"+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nach Updates suchen …"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Buscar actualizaciones…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rechercher les mises à jour…"+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Verifica aggiornamenti…"+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "アップデートを確認…"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "업데이트 확인…"+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zoek naar updates…"+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sprawdź uaktualnienia…"+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Buscar Atualizações…"+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Căutați actualizări…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Проверить наличие обновлений…"+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Leta efter uppdateringar…"+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Güncellemeleri Denetle…"+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Перевірити наявність оновлень…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "检查更新…"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "檢查更新項目⋯"+ }+ }+ }+ },"Check for app updates" : {"localizations" : {"cs" : {@@ -26385,112 +26491,6 @@}}},- "Click to download it in About, then replace this copy in Applications." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Klikněte a v okně O aplikaci Peel si stáhněte novou verzi. Pak jí nahraďte tuto kopii ve složce Aplikace."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Klicke, um die neue Version unter „Über ‚Peel‘“ zu laden, und ersetze dann diese Kopie im Ordner „Programme“."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Haz clic para descargarla desde Acerca de Peel y luego reemplaza esta copia en la carpeta Aplicaciones."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Cliquez pour le télécharger depuis « À propos de Peel », puis remplacez cette copie dans le dossier Applications."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Fai clic per scaricarla da “Informazioni su Peel”, poi sostituisci questa copia nella cartella Applicazioni."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "クリックすると、“Peelについて”でダウンロードできます。その後、“アプリケーション”フォルダにあるこのPeelを新しいバージョンに置き換えてください。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "클릭하면 ‘Peel에 관하여’에서 다운로드할 수 있습니다. 그런 다음 응용 프로그램 폴더에서 이 복사본을 새로운 버전으로 대치하십시오."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Klik om de nieuwe versie te downloaden via 'Over Peel' en vervang daarmee deze kopie in de map 'Apps'."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Kliknij, aby ją pobrać w oknie „O programie Peel”, a potem zastąp nią tę kopię w folderze Aplikacje."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Clique para baixar a nova versão em Sobre o App Peel e depois substitua esta cópia na pasta Aplicativos."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Faceți clic pentru a o descărca din fereastra Despre Peel, apoi înlocuiți cu ea această copie din dosarul Aplicații."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Нажмите, чтобы загрузить ее в окне «О приложении Peel», а затем замените эту копию в папке «Программы»."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Klicka för att hämta den i Om Peel. Ersätt sedan den här kopian i mappen Appar."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Yeni sürümü Peel Hakkında penceresinden indirmek için tıklayın, ardından Uygulamalar klasöründeki bu kopyayı yenisiyle değiştirin."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Натисніть, щоб викачати її у вікні «Про програму», а потім замініть нею цю копію в папці «Програми»."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "点按即可在“关于Peel”窗口中下载新版本,然后在“应用程序”文件夹中用它替换此Peel副本。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "按一下即可在「關於Peel」中下載新版本,然後用它取代「應用程式」檔案夾中的這份副本。"- }- }- }- },"Click to see what it left behind, under Applications." : {"localizations" : {"cs" : {@@ -30209,112 +30209,6 @@}}},- "Copy Command" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Zkopírovat příkaz"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Befehl kopieren"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Copiar comando"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Copier la commande"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Copia comando"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "コマンドをコピー"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "명령 복사"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Kopieer commando"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Kopiuj polecenie"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Copiar Comando"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Copiați comanda"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Скопировать команду"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Kopiera kommando"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Komutu Kopyala"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Скопіювати команду"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "拷贝命令"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "拷貝指令"- }- }- }- },"Copy Details" : {"localizations" : {"cs" : {@@ -34799,218 +34693,6 @@}}},- "Download" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Stáhnout"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Laden"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Descargar"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Télécharger"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Scarica"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "ダウンロード"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "다운로드"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Download"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Pobierz"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Baixar"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Descărcați"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Загрузить"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Hämta"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "İndir"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Викачати"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "下载"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "下載"- }- }- }- },- "Download it, then replace this copy in Applications." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Stáhněte si ji a pak jí nahraďte tuto kopii ve složce Aplikace."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Lade sie und ersetze dann diese Kopie im Ordner „Programme“."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Descárgala y luego reemplaza esta copia en la carpeta Aplicaciones."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Téléchargez-la, puis remplacez cette copie dans le dossier Applications."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Scaricala, poi sostituisci questa copia nella cartella Applicazioni."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "ダウンロードしてから、“アプリケーション”フォルダにあるこのPeelを新しいバージョンに置き換えてください。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "다운로드한 다음 응용 프로그램 폴더에서 이 복사본을 새로운 버전으로 대치하십시오."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Download de nieuwe versie en vervang daarmee deze kopie in de map 'Apps'."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Pobierz ją, a potem zastąp nią tę kopię w folderze Aplikacje."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Baixe-a e depois substitua esta cópia na pasta Aplicativos."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Descărcați‑o, apoi înlocuiți cu ea această copie din dosarul Aplicații."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Загрузите ее, а затем замените эту копию в папке «Программы»."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Hämta den och ersätt sedan den här kopian i mappen Appar."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "İndirin, ardından Uygulamalar klasöründeki bu kopyayı yenisiyle değiştirin."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Викачайте її, а потім замініть нею цю копію в папці «Програми»."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "请下载新版本,然后在“应用程序”文件夹中用它替换此Peel副本。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "請下載新版本,然後用它取代「應用程式」檔案夾中的這份副本。"- }- }- }- },"Downloaded" : {"localizations" : {"cs" : {@@ -51428,218 +51110,6 @@}}},- "Homebrew installed this copy, so upgrade it by running the command in Terminal." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Tuto kopii nainstaloval Homebrew, proto ji upgradujte spuštěním příkazu v Terminálu."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Da Homebrew diese Kopie installiert hat, führe für das Upgrade den Befehl im Terminal aus."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew instaló esta copia, así que, para actualizarla, ejecuta el comando en Terminal."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew a installé cette copie : mettez-la donc à niveau en exécutant la commande dans Terminal."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Questa copia è stata installata da Homebrew, quindi aggiornala eseguendo il comando in Terminale."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "このPeelはHomebrewでインストールされたため、ターミナルでコマンドを実行してアップグレードしてください。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew가 이 복사본을 설치했으므로 터미널에서 이 명령을 실행하여 업그레이드하십시오."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew heeft deze kopie geïnstalleerd, dus upgrade die door het commando in Terminal uit te voeren."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Tę kopię zainstalował Homebrew, więc aby ją uaktualnić, uruchom polecenie w Terminalu."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "O Homebrew instalou esta cópia, então faça upgrade dela executando o comando no Terminal."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew a instalat această copie, așa că faceți‑i upgrade rulând comanda în Terminal."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Эту копию установил Homebrew, поэтому обновите ее, выполнив команду в Терминале."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew installerade den här kopian, så uppgradera den genom att köra kommandot i Terminal."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Bu kopyayı Homebrew yükledi, bu yüzden onu yükseltmek için komutu Terminal’de çalıştırın."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Цю копію інсталював Homebrew, тож оновіть її, виконавши команду в Терміналі."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "此Peel副本由Homebrew安装,因此请在“终端”中运行该命令来升级它。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "這份副本是由Homebrew安裝的,因此請在「終端機」中執行此指令來升級它。"- }- }- }- },- "Homebrew installed this copy. Click to see the command that upgrades it, in About." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Tuto kopii nainstaloval Homebrew. Klikněte a v okně O aplikaci Peel uvidíte příkaz, který ji upgraduje."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew hat diese Kopie installiert. Klicke, um unter „Über ‚Peel‘“ den Befehl für das Upgrade zu sehen."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew instaló esta copia. Haz clic para ver el comando que la actualiza, en Acerca de Peel."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew a installé cette copie. Cliquez pour voir la commande qui la met à niveau, dans « À propos de Peel »."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Questa copia è stata installata da Homebrew. Fai clic per vedere il comando per aggiornarla, in “Informazioni su Peel”."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "このPeelはHomebrewでインストールされています。クリックすると、“Peelについて”で、アップグレード用のコマンドを確認できます。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew가 이 복사본을 설치했습니다. 클릭하면 ‘Peel에 관하여’에서 업그레이드 명령을 볼 수 있습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew heeft deze kopie geïnstalleerd. Klik om in 'Over Peel' het commando te zien waarmee je die upgradet."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Tę kopię zainstalował Homebrew. Kliknij, aby w oknie „O programie Peel” zobaczyć polecenie, które ją uaktualnia."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "O Homebrew instalou esta cópia. Clique para ver o comando que faz upgrade dela, em Sobre o App Peel."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew a instalat această copie. Faceți clic pentru a vedea comanda care îi face upgrade, în fereastra Despre Peel."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Эту копию установил Homebrew. Нажмите, чтобы увидеть в окне «О приложении Peel» команду для ее обновления."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Homebrew installerade den här kopian. Klicka för att se kommandot som uppgraderar den, i Om Peel."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Bu kopyayı Homebrew yükledi. Onu yükselten komutu Peel Hakkında penceresinde görmek için tıklayın."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Цю копію інсталював Homebrew. Натисніть, щоб побачити у вікні «Про програму» команду, яка її оновлює."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "此Peel副本由Homebrew安装。点按即可在“关于Peel”窗口中查看升级它的命令。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "這份副本是由Homebrew安裝的。按一下即可在「關於Peel」中查看升級它的指令。"- }- }- }- },"Homebrew installs command-line tools as formulae and apps as casks. On this page Peel only runs Homebrew’s own commands and reads what they report." : {"localizations" : {"cs" : {@@ -57180,6 +56650,112 @@}}},+ "Install Update…" : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nainstalovat aktualizaci…"+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Update installieren …"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalar actualización…"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installer la mise à jour…"+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installa aggiornamento…"+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "アップデートをインストール…"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "업데이트 설치…"+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installeer update…"+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instaluj uaktualnienie…"+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalar Atualização…"+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Instalați actualizarea…"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Установить обновление…"+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Installera uppdatering…"+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Güncellemeyi Yükle…"+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Інсталювати оновлення…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安装更新…"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "安裝更新項目⋯"+ }+ }+ }+ },"Install and set up" : {"localizations" : {"cs" : {@@ -98968,112 +98544,6 @@"comment" : "The app's name, never translated.","shouldTranslate" : false},- "Peel %@ is out" : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Vyšel Peel %@"- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ ist verfügbar"- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ disponible"- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ est disponible"- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ disponibile"- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@が公開されました"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ 출시됨"- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ is verschenen"- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Dostępna wersja Peel %@"- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ disponível"- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "A apărut Peel %@"- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Вышла версия Peel %@"- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ har släppts"- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@ çıktı"- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Вийшла Peel %@"- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@已发布"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel %@已推出"- }- }- }- },"Peel Inventory.%@" : {"comment" : "A suggested file name. Translate the words before the dot. %@ is the file extension, such as json.","localizations" : {@@ -110345,6 +109815,113 @@}}},+ "Peel updates itself with [Sparkle](peel-license:Sparkle-LICENSE)" : {+ "comment" : "Sparkle is the open source framework that installs Peel’s updates. Keep the link as it is.",+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel se aktualizuje pomocí projektu [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel aktualisiert sich selbst mit [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel se actualiza con [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel se met à jour grâce à [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel si aggiorna con [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peelのアップデートには[Sparkle](peel-license:Sparkle-LICENSE)を使用しています"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel은 [Sparkle](peel-license:Sparkle-LICENSE)를 사용하여 스스로 업데이트합니다"+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel werkt zichzelf bij met [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel uaktualnia się za pomocą [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel se atualiza com o [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel se actualizează cu [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel обновляется с помощью [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel uppdaterar sig själv med [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel kendini [Sparkle](peel-license:Sparkle-LICENSE) ile günceller"+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оновлюється за допомогою [Sparkle](peel-license:Sparkle-LICENSE)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel使用[Sparkle](peel-license:Sparkle-LICENSE)更新自身"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel使用[Sparkle](peel-license:Sparkle-LICENSE)更新自己"+ }+ }+ }+ },"Peel won’t move itself from here: its folder needs an administrator, or Peel is excluded in Settings. Drag it to the Trash in Finder, which asks for an administrator when one is needed." : {"localizations" : {"cs" : {@@ -113553,6 +113130,112 @@}}},+ "Peel’s own update feed, the release feed of apps that update through GitHub, and wherever GitHub sends the download. Homebrew also updates itself and its taps from here when you ask it to update, upgrade, or repair its taps." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kanál aktualizací samotného Peelu, kanál vydání aplikací, které se aktualizují přes GitHub, a kamkoli GitHub stahování přesměruje. Odtud Homebrew také aktualizuje sám sebe a své taps, když ho požádáte o aktualizaci, upgrade nebo opravu jeho taps."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Der eigene Update-Feed von Peel, der Release-Feed von Apps, die sich über GitHub aktualisieren, sowie die Adresse, an die GitHub den Download weiterleitet. Homebrew aktualisiert von hier auch sich selbst und seine Taps, wenn du Homebrew aktualisieren, ein Upgrade ausführen oder seine Taps reparieren lässt."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "El canal de actualizaciones del propio Peel, el canal de versiones de las apps que se actualizan a través de GitHub, y el lugar al que GitHub envíe la descarga. Homebrew también se actualiza desde aquí, junto con sus taps, cuando le pides que se actualice, que actualice paquetes o que repare sus taps."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Le flux de mises à jour propre à Peel, le flux de versions des apps qui se mettent à jour via GitHub, et l’adresse vers laquelle GitHub redirige le téléchargement. Homebrew se met aussi à jour depuis cet hôte, ainsi que ses taps, lorsque vous lui demandez une mise à jour, une mise à niveau ou la réparation de ses taps."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Il feed degli aggiornamenti di Peel stesso, il feed delle versioni delle app che si aggiornano tramite GitHub, e ovunque GitHub indirizzi il download. Da qui si aggiorna anche Homebrew, insieme ai suoi tap, quando gli chiedi di aggiornarsi, di aggiornare i pacchetti o di riparare i tap."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel自身のアップデートフィード、GitHubでアップデートされるアプリのリリースフィードと、GitHubがダウンロードを転送する先です。アップデート、アップグレード、またはtapsの修復を指示したときに、Homebrewもここから自身とtapsをアップデートします。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel 자체의 업데이트 피드, GitHub를 통해 업데이트되는 앱의 릴리즈 피드와, GitHub가 다운로드를 보내는 모든 주소입니다. Homebrew도 업데이트, 업그레이드 또는 tap 복구를 요청하면 여기에서 자신과 자신의 tap을 업데이트합니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "De eigen updatefeed van Peel, de releasefeed van apps die via GitHub worden bijgewerkt, en elke plek waar GitHub de download naar doorstuurt. Homebrew werkt zichzelf en zijn taps hier ook bij als je Homebrew vraagt om bij te werken, te upgraden of zijn taps te herstellen."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kanał uaktualnień samego Peel, kanał wydań aplikacji uaktualnianych przez GitHub oraz miejsce, do którego GitHub kieruje pobieranie. Stąd też Homebrew pobiera nowe wersje samego siebie i swoich tapów, gdy użyjesz polecenia Odśwież, Uaktualnij lub Napraw tapy."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O feed de atualização do próprio Peel, o feed de versões dos apps que se atualizam pelo GitHub, e qualquer endereço para onde o GitHub mande o download. O Homebrew também se atualiza por aqui, junto com os seus taps, quando você pede para ele atualizar, fazer upgrade ou reparar os seus taps."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Fluxul de actualizări propriu al aplicației Peel, fluxul de versiuni al aplicațiilor care se actualizează prin GitHub și orice loc spre care GitHub trimite descărcarea. Tot de aici se actualizează și Homebrew, împreună cu tap‑urile sale, când îi cereți să se actualizeze, să facă upgrade sau să își repare tap‑urile."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Собственная лента обновлений Peel, лента выпусков приложений, которые обновляются через GitHub, и адрес, куда GitHub перенаправляет загрузку. Homebrew тоже обновляет отсюда себя и свои taps, когда Вы запускаете обновление Homebrew или пакетов либо исправление taps."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peels eget uppdateringsflöde, versionsflödet för appar som uppdateras via GitHub, och dit GitHub skickar hämtningen. Homebrew uppdaterar också sig självt och sina taps härifrån när du ber det att uppdatera, uppgradera eller reparera sina taps."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel’in kendi güncelleme akışı, GitHub üzerinden güncellenen uygulamaların sürüm akışı ve GitHub’ın indirmeyi yönlendirdiği her yer. Homebrew da, ondan güncellemesini, yükseltmesini veya tap depolarını onarmasını istediğinizde kendini ve tap depolarını buradan günceller."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Власна стрічка оновлень Peel, стрічка випусків програм, які оновлюються через GitHub, і будь-яка адреса, куди GitHub перенаправляє для викачування. Homebrew також оновлює звідси себе й свої taps, коли ви просите його оновитися, оновити пакети або полагодити taps."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel本身的更新源、通过GitHub更新的App的发布源,以及GitHub将下载重定向到的任何地址。当你让Homebrew更新或升级,或让它修复其taps时,Homebrew也会从这里更新自身及其taps。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel自己的更新Feed、透過GitHub更新之App的發行版本Feed,以及GitHub將下載導向的任何位置。當你要求Homebrew更新、升級或修復其taps時,Homebrew也會從這裡更新自己和其taps。"+ }+ }+ }+ },"Peel’s settings file" : {"localizations" : {"cs" : {@@ -152560,112 +152243,6 @@}}},- "The latest release of Peel itself. Peel says when a new one is out and downloads nothing." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Nejnovější vydání samotného Peelu. Peel dá vědět, když vyjde nové, a nic nestahuje."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Die neueste Version von Peel selbst. Peel zeigt an, wenn eine neue verfügbar ist, und lädt nichts."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "La versión más reciente del propio Peel. Peel avisa cuando sale una nueva y no descarga nada."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "La dernière version de Peel lui-même. Peel indique quand une nouvelle version est disponible et ne télécharge rien."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "L’ultima versione di Peel stesso. Peel segnala quando ne è disponibile una nuova e non scarica nulla."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel自身の最新リリースを確認します。新しいリリースが公開されたときに知らせますが、何もダウンロードしません。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel 자체의 최신 릴리즈 정보입니다. Peel은 새로운 버전이 출시되면 알려 주며, 아무것도 다운로드하지 않습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "De nieuwste versie van Peel zelf. Peel laat weten wanneer er een nieuwe is verschenen, en downloadt niets."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Najnowsze wydanie samego Peel. Peel informuje, gdy pojawi się nowe, i niczego nie pobiera."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "A versão mais recente do próprio Peel. O Peel avisa quando uma nova está disponível e não baixa nada."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Cea mai recentă versiune a aplicației Peel înseși. Peel vă spune când apare una nouă și nu descarcă nimic."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Последний выпуск самого Peel. Peel сообщает, когда выходит новый, и ничего не загружает."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Den senaste versionen av Peel själv. Peel talar om när en ny version har släppts och hämtar ingenting."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel’in kendi en son sürümü. Peel, yeni bir sürüm çıktığında bunu söyler ve hiçbir şey indirmez."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Найновіший випуск самої Peel. Peel повідомляє, коли виходить новий, і нічого не викачує."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel本身的最新发布版本。Peel会在有新版本发布时告诉你,但不会下载任何内容。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel本身的最新發行版本。Peel會在有新版本推出時告訴你,但不會下載任何內容。"- }- }- }- },"The latest version of apps installed from the App Store." : {"localizations" : {"cs" : {@@ -154893,112 +154470,6 @@}}},- "The release feed of apps that update through GitHub, and wherever GitHub sends the download. Homebrew also updates itself and its taps from here when you ask it to update, upgrade, or repair its taps." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Kanál vydání aplikací, které se aktualizují přes GitHub, a kamkoli GitHub stahování přesměruje. Odtud Homebrew také aktualizuje sám sebe a své taps, když ho požádáte o aktualizaci, upgrade nebo opravu jeho taps."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Der Release-Feed von Apps, die sich über GitHub aktualisieren, sowie die Adresse, an die GitHub den Download weiterleitet. Homebrew aktualisiert von hier auch sich selbst und seine Taps, wenn du Homebrew aktualisieren, ein Upgrade ausführen oder seine Taps reparieren lässt."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "El canal de versiones de las apps que se actualizan a través de GitHub, y el lugar al que GitHub envíe la descarga. Homebrew también se actualiza desde aquí, junto con sus taps, cuando le pides que se actualice, que actualice paquetes o que repare sus taps."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Le flux de versions des apps qui se mettent à jour via GitHub, et l’adresse vers laquelle GitHub redirige le téléchargement. Homebrew se met aussi à jour depuis cet hôte, ainsi que ses taps, lorsque vous lui demandez une mise à jour, une mise à niveau ou la réparation de ses taps."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "Il feed delle versioni delle app che si aggiornano tramite GitHub, e ovunque GitHub indirizzi il download. Da qui si aggiorna anche Homebrew, insieme ai suoi tap, quando gli chiedi di aggiornarsi, di aggiornare i pacchetti o di riparare i tap."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "GitHubでアップデートされるアプリのリリースフィードと、GitHubがダウンロードを転送する先です。アップデート、アップグレード、またはtapsの修復を指示したときに、Homebrewもここから自身とtapsをアップデートします。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "GitHub를 통해 업데이트되는 앱의 릴리즈 피드와, GitHub가 다운로드를 보내는 모든 주소입니다. Homebrew도 업데이트, 업그레이드 또는 tap 복구를 요청하면 여기에서 자신과 자신의 tap을 업데이트합니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "De releasefeed van apps die via GitHub worden bijgewerkt, en elke plek waar GitHub de download naar doorstuurt. Homebrew werkt zichzelf en zijn taps hier ook bij als je Homebrew vraagt om bij te werken, te upgraden of zijn taps te herstellen."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Kanał wydań aplikacji uaktualnianych przez GitHub oraz miejsce, do którego GitHub kieruje pobieranie. Stąd też Homebrew pobiera nowe wersje samego siebie i swoich tapów, gdy użyjesz polecenia Odśwież, Uaktualnij lub Napraw tapy."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "O feed de versões dos apps que se atualizam pelo GitHub, e qualquer endereço para onde o GitHub mande o download. O Homebrew também se atualiza por aqui, junto com os seus taps, quando você pede para ele atualizar, fazer upgrade ou reparar os seus taps."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Fluxul de versiuni al aplicațiilor care se actualizează prin GitHub și orice loc spre care GitHub trimite descărcarea. Tot de aici se actualizează și Homebrew, împreună cu tap‑urile sale, când îi cereți să se actualizeze, să facă upgrade sau să își repare tap‑urile."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Лента выпусков приложений, которые обновляются через GitHub, и адрес, куда GitHub перенаправляет загрузку. Homebrew тоже обновляет отсюда себя и свои taps, когда Вы запускаете обновление Homebrew или пакетов либо исправление taps."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Versionsflödet för appar som uppdateras via GitHub, och dit GitHub skickar hämtningen. Homebrew uppdaterar också sig självt och sina taps härifrån när du ber det att uppdatera, uppgradera eller reparera sina taps."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "GitHub üzerinden güncellenen uygulamaların sürüm akışı ve GitHub’ın indirmeyi yönlendirdiği her yer. Homebrew da, ondan güncellemesini, yükseltmesini veya tap depolarını onarmasını istediğinizde kendini ve tap depolarını buradan günceller."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Стрічка випусків програм, які оновлюються через GitHub, і будь-яка адреса, куди GitHub перенаправляє для викачування. Homebrew також оновлює звідси себе й свої taps, коли ви просите його оновитися, оновити пакети або полагодити taps."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "通过GitHub更新的App的发布源,以及GitHub将下载重定向到的任何地址。当你让Homebrew更新或升级,或让它修复其taps时,Homebrew也会从这里更新自身及其taps。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "透過GitHub更新之App的發行版本Feed,以及GitHub將下載導向的任何位置。當你要求Homebrew更新、升級或修復其taps時,Homebrew也會從這裡更新自己和其taps。"- }- }- }- },"The request wasn’t valid." : {"localizations" : {"cs" : {diff --git a/PRIVACY.md b/PRIVACY.mdindex 59d495df..4c0766ef 100644--- a/PRIVACY.md+++ b/PRIVACY.md@@ -28,6 +28,10 @@ where its code comes from (the address of its source repository and the releaseversion, sent to `api.osv.dev`. Your own Homebrew settings (a `brew.env` file) can change what Homebrew does, and theHomebrew page then says what they change.+Peel checks for its own updates with Sparkle: it reads Peel's signed feed on GitHub over https, saying only that Peel+is asking, and downloads a new version only when you choose to install it, then checks that it is signed as Peel's+before installing it.+Turn off Check for app updates in Settings, and Peel contacts nothing on its own; the `peel updates` command stillchecks whenever you run it, whatever that switch says.@@ -40,8 +44,7 @@ them as the page loads, and they are posted only if you send the issue.| Address | Why ||---|---|| `itunes.apple.com` | The latest version of an app bought from the App Store. No other app is ever asked about. |-| `github.com` | Release feeds of apps that update through GitHub, and wherever GitHub sends the download. Homebrew also updates itself and its taps from here when you ask it to, Repair Taps included. |-| `api.github.com` | The latest release of Peel itself. Peel says when a new one is out and downloads nothing. |+| `github.com` | Peel's own update feed, release feeds of apps that update through GitHub, and wherever GitHub sends the download. Homebrew also updates itself and its taps from here when you ask it to, Repair Taps included. || `formulae.brew.sh` | Homebrew's list of packages, when you ask Homebrew to update or upgrade. || `ghcr.io` | Where Homebrew downloads the packages it upgrades. A cask comes from its maker's own address. || `api.osv.dev` | The database of known vulnerabilities that Homebrew's scan checks your formulae against. |diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/Inventory.swift b/Packages/PeelCore/Sources/PeelCore/Apps/Inventory.swiftindex 93f6e14c..c2ac6238 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/Inventory.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/Inventory.swift@@ -103,12 +103,12 @@ public struct Inventory: Sendable {if app.isFromSetapp {return ("Setapp", nil)}- // `.appStore` and `.gitHubRelease` only say where Peel asks about updates. The receipt inside the bundle- // is the only thing that says an app was installed from the App Store.+ // `.appStore` only says where Peel asks about updates. The receipt inside the bundle is the only thing that+ // says an app was installed from the App Store.return switch app.updateFeed {case .sparkle(let url): ("Sparkle", url.absoluteString)case .electron(let url): ("Electron", url.absoluteString)- case .appStore, .gitHubRelease, nil: origins?.address(of: app.url).map { ("Downloaded", $0.absoluteString) } ?? ("Unknown", nil)+ case .appStore, nil: origins?.address(of: app.url).map { ("Downloaded", $0.absoluteString) } ?? ("Unknown", nil)}}diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/GitHubRelease.swift b/Packages/PeelCore/Sources/PeelCore/Updates/GitHubRelease.swiftdeleted file mode 100644index 8c9b272c..00000000--- a/Packages/PeelCore/Sources/PeelCore/Updates/GitHubRelease.swift+++ /dev/null@@ -1,32 +0,0 @@-import Foundation--/// A repository's latest release, as GitHub's REST API answers it: the newest one that is neither a draft nor a-/// prerelease.-enum GitHubRelease {- /// Peel's own releases, the one repository Peel asks about: no other app says where it is released.- static let peel = URL(string: "https://api.github.com/repos/TuguiDragos/Peel/releases/latest")!-- /// The version the release's tag names, the release's page on GitHub, where it is downloaded, and its- /// description, in Markdown. Nil for an answer in any other form.- static func latest(in data: Data) -> (version: String, page: URL?, notes: ReleaseNotes?)? {- guard let release = try? JSONDecoder().decode(Release.self, from: data) else { return nil }- let version = release.tagName.first == "v" || release.tagName.first == "V"- ? String(release.tagName.dropFirst())- : release.tagName- guard !version.isEmpty else { return nil }- let page = release.htmlURL.flatMap(URL.init(string:)).flatMap { $0.scheme == "https" && $0.host() == "github.com" ? $0 : nil }- return (version, page, release.body.flatMap { ReleaseNotes($0, format: .markdown) })- }-- private struct Release: Decodable {- let tagName: String- let htmlURL: String?- let body: String?-- enum CodingKeys: String, CodingKey {- case tagName = "tag_name"- case htmlURL = "html_url"- case body- }- }-}diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/NewerPeelNotice.swift b/Packages/PeelCore/Sources/PeelCore/Updates/NewerPeelNotice.swiftdeleted file mode 100644index 3fd1d0cf..00000000--- a/Packages/PeelCore/Sources/PeelCore/Updates/NewerPeelNotice.swift+++ /dev/null@@ -1,13 +0,0 @@-/// When Peel tells with a notification that a newer version of itself is out: once for each version.-public enum NewerPeelNotice {- public struct Answer: Sendable, Hashable {- public let tell: Bool- /// The version told last, which the next check is given.- public let told: String?- }-- public static func check(newer: String?, told: String?) -> Answer {- guard let newer, newer != told else { return Answer(tell: false, told: told) }- return Answer(tell: true, told: newer)- }-}diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/OwnUpdateCheck.swift b/Packages/PeelCore/Sources/PeelCore/Updates/OwnUpdateCheck.swiftnew file mode 100644index 00000000..9241cbc1--- /dev/null+++ b/Packages/PeelCore/Sources/PeelCore/Updates/OwnUpdateCheck.swift@@ -0,0 +1,7 @@+/// When Peel may ask about its own updates: whenever the person asks, and on its own only while Check for app updates+/// is on, since Settings promises that with it off Peel contacts nothing on its own.+public enum OwnUpdateCheck {+ public static func mayAsk(askedByThePerson: Bool, checksForAppUpdates: Bool) -> Bool {+ askedByThePerson || checksForAppUpdates+ }+}diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swiftindex c0267431..b7c6a369 100644--- a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift+++ b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift@@ -104,7 +104,6 @@ public struct UpdateChecker: Sendable {case nil: UpdateAnswer(status: .unsupported)case .sparkle(let url): await sparkleAnswer(for: app, installed: installed, at: url)case .electron(let url): await electronAnswer(installed: installed, at: url)- case .gitHubRelease(let url): await gitHubReleaseAnswer(installed: installed, at: url)case .appStore: await appStoreAnswer(for: app)}}@@ -142,19 +141,6 @@ public struct UpdateChecker: Sendable {)}- private func gitHubReleaseAnswer(installed: String, at url: URL) async -> UpdateAnswer {- guard let data = await fetch(url), let release = GitHubRelease.latest(in: data) else {- return UpdateAnswer(status: .failed)- }- guard VersionComparison.isNewer(release.version, than: installed) else {- return UpdateAnswer(status: .upToDate)- }- return UpdateAnswer(- status: .updateAvailable(version: release.version, source: .developer, releaseNotes: release.page),- notes: release.notes- )- }-/// Asks the App Store about `app`, but only when the app has an App Store receipt, whoever calls this./// Asking about other apps would send Apple, one identifier at a time, the list of installed apps.private func appStoreAnswer(for app: InstalledApp) async -> UpdateAnswer {@@ -222,7 +208,7 @@ public struct UpdateChecker: Sendable {let notes = ElectronUpdater.releaseNotes(fromFeed: feed)else { return .notGiven }return .found(notes)- case .gitHubRelease, .appStore, nil:+ case .appStore, nil:return .notGiven}}diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateFeed.swift b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateFeed.swiftindex 813c0b3b..9988c371 100644--- a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateFeed.swift+++ b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateFeed.swift@@ -4,8 +4,6 @@ internal import PeelPrivilegedpublic enum UpdateFeed: Sendable, Hashable {case sparkle(URL)case electron(URL)- /// Peel's own releases on GitHub (`GitHubRelease`).- case gitHubRelease(URL)case appStore}@@ -69,9 +67,6 @@ extension UpdateFeed {if isFromAppStore {return .appStore}- if (info["CFBundleIdentifier"] as? String)?.lowercased() == HelperIdentity.appIdentifier.lowercased() {- return .gitHubRelease(GitHubRelease.peel)- }if let feed = (info["SUFeedURL"] as? String).flatMap(URL.init(string:)), feed.scheme == "https" {return .sparkle(feed)}diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateSchedule.swift b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateSchedule.swiftindex a5a4c6df..d79bfd6f 100644--- a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateSchedule.swift+++ b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateSchedule.swift@@ -1,12 +1,10 @@public import Foundation-internal import PeelPrivileged/// When to check an app for updates again.////// Most apps answer "up to date" for months, and each answer costs a request to someone else's server. So/// every answer that changes nothing doubles the wait, up to a week. A found update sets the wait back to a-/// day, because one release is often followed by another. Peel's own releases wait a day at most-/// (`longestWait(for:)`).+/// day, because one release is often followed by another.////// A feed that fails keeps a separate count, from 6 hours up to 2 days, since a server that is down may be/// back soon. A long healthy wait says nothing about when a broken server recovers, so the counts stay apart.@@ -32,8 +30,7 @@ public struct UpdateSchedule: Sendable, Equatable, Codable {public static func next(after status: UpdateStatus,following previous: UpdateSchedule? = nil,- from now: Date = .now,- longest: TimeInterval = UpdateSchedule.longest+ from now: Date = .now) -> UpdateSchedule {// An "up to date" found before the app was due (Rescan, or a bundle that changed) says nothing about how// often the app ships, so the wait stays the same and only restarts from `now`.@@ -45,7 +42,7 @@ public struct UpdateSchedule: Sendable, Equatable, Codable {healthyWait: nil)}- let wait = wait(after: status, following: previous, longest: longest)+ let wait = wait(after: status, following: previous)return UpdateSchedule(wait: wait,due: now.addingTimeInterval(wait),@@ -54,18 +51,14 @@ public struct UpdateSchedule: Sendable, Equatable, Codable {)}- private static func wait(- after status: UpdateStatus,- following previous: UpdateSchedule?,- longest: TimeInterval- ) -> TimeInterval {+ private static func wait(after status: UpdateStatus, following previous: UpdateSchedule?) -> TimeInterval {switch status {case .updateAvailable:basecase .upToDate:min(max(healthyWait(before: previous), base) * 2, longest)case .failed:- min(max(failingWait(before: previous) * 2, afterFailure), longestAfterFailure, longest)+ min(max(failingWait(before: previous) * 2, afterFailure), longestAfterFailure)case .unsupported:// Nowhere to ask. What would change the answer is the app being replaced, and a bundle that// changes is checked at once whatever the wait says.@@ -73,12 +66,6 @@ public struct UpdateSchedule: Sendable, Equatable, Codable {}}- /// The longest wait for `app`. Peel never installs itself, so asking GitHub once a day about its own- /// releases is how a person learns their copy is out of date.- public static func longestWait(for app: InstalledApp) -> TimeInterval {- app.bundleIdentifier?.lowercased() == HelperIdentity.appIdentifier.lowercased() ? base : longest- }-/// Whether the app is due at `moment`. A due date further away than the wait can only come from a clock/// that was set back since, so it counts as due. Otherwise a check made with the clock a year ahead would/// silence every app for a year.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/NewerPeelNoticeTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/NewerPeelNoticeTests.swiftdeleted file mode 100644index 7d48ae0e..00000000--- a/Packages/PeelCore/Tests/PeelCoreTests/NewerPeelNoticeTests.swift+++ /dev/null@@ -1,15 +0,0 @@-@testable import PeelCore-import Testing--struct NewerPeelNoticeTests {- @Test func tellsOnceForEachNewerVersion() {- #expect(NewerPeelNotice.check(newer: nil, told: nil) == .init(tell: false, told: nil))- #expect(NewerPeelNotice.check(newer: "1.0.2", told: nil) == .init(tell: true, told: "1.0.2"))- #expect(NewerPeelNotice.check(newer: "1.0.2", told: "1.0.2") == .init(tell: false, told: "1.0.2"))- #expect(NewerPeelNotice.check(newer: "1.0.3", told: "1.0.2") == .init(tell: true, told: "1.0.3"))- }-- @Test func keepsWhatItToldOnceThisCopyIsUpToDate() {- #expect(NewerPeelNotice.check(newer: nil, told: "1.0.3") == .init(tell: false, told: "1.0.3"))- }-}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/OwnUpdatesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/OwnUpdatesTests.swiftnew file mode 100644index 00000000..1a20672e--- /dev/null+++ b/Packages/PeelCore/Tests/PeelCoreTests/OwnUpdatesTests.swift@@ -0,0 +1,65 @@+import Foundation+@testable import PeelCore+import Testing++struct OwnUpdatesTests {+ @Test func asksAboutItsOwnUpdatesOnItsOwnOnlyWhileUpdateChecksAreOn() {+ #expect(OwnUpdateCheck.mayAsk(askedByThePerson: true, checksForAppUpdates: true))+ #expect(OwnUpdateCheck.mayAsk(askedByThePerson: true, checksForAppUpdates: false))+ #expect(OwnUpdateCheck.mayAsk(askedByThePerson: false, checksForAppUpdates: true))+ #expect(!OwnUpdateCheck.mayAsk(askedByThePerson: false, checksForAppUpdates: false))+ }++ @Test func readsItsOwnSignedFeedAsTheReleaseWritesIt() throws {+ let feed = """+ <?xml version="1.0" standalone="yes"?><!-- sparkle-sign-warning:+ IMPORTANT: This file was signed by Sparkle. Any modifications to this file requires re-signing this file with \+ generate_appcast or sign_update! The signed signature will be embedded at the end of this file.+ --><rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">+ <channel>+ <title>Peel</title>+ <item>+ <title>1.0.2</title>+ <pubDate>Fri, 16 Oct 2026 12:00:00 +0200</pubDate>+ <sparkle:criticalUpdate></sparkle:criticalUpdate>+ <sparkle:version>261016</sparkle:version>+ <sparkle:shortVersionString>1.0.2</sparkle:shortVersionString>+ <sparkle:minimumSystemVersion>26.0</sparkle:minimumSystemVersion>+ <enclosure url="https://github.com/TuguiDragos/Peel/releases/download/v1.0.2/Peel-1.0.2.dmg" \+ length="21902039" type="application/octet-stream" sparkle:edSignature="SJIZHrsKVqH33o+uqeJLzi1+o7BHT5gquqpypaSOx2vf"></enclosure>+ </item>+ </channel>+ </rss><!-- sparkle-signatures:+ edSignature: jBug6R4cqU+Ivsnuc5vseBntmIm08j46rXbczysF1BygZVmrCJBXQClNwtfnIbjXyUrNSZcYVeTmj0v+Pf9vAA==+ length: 1143+ -->+ """+ for isAppleSilicon in [true, false] {+ let releases = Appcast.releases(in: Data(feed.utf8), systemVersion: "26.0.0", isAppleSilicon: isAppleSilicon)+ let release = try #require(releases?.first)+ #expect(release.version == "261016")+ #expect(release.displayVersion == "1.0.2")+ }+ }++ @Test func installsOnlySignedUpdatesFromItsOwnFeedWhenThePersonChooses() throws {+ let repository = StringCatalogTests.repository+ let plist = try Data(contentsOf: repository.appending(path: "Support/Peel-Info.plist"))+ let info = try #require(try PropertyListSerialization.propertyList(from: plist, format: nil) as? [String: Any])++ #expect(info["SUFeedURL"] as? String == "https://github.com/TuguiDragos/Peel/releases/latest/download/appcast.xml")+ #expect(info["SUPublicEDKey"] as? String == "$(SPARKLE_PUBLIC_ED_KEY)")+ #expect(info["SUVerifyUpdateBeforeExtraction"] as? Bool == true)+ #expect(info["SURequireSignedFeed"] as? Bool == true)+ #expect(info["SUAllowsAutomaticUpdates"] as? Bool == false)+ #expect(info["SUEnableAutomaticChecks"] as? Bool == true)+ #expect(info["SUEnableSystemProfiling"] == nil)+ #expect(!info.keys.contains { $0.hasPrefix("SUEnable") && $0.hasSuffix("Service") })++ let project = try String(contentsOf: repository.appending(path: "Peel.xcodeproj/project.pbxproj"), encoding: .utf8)+ let keys = project.matches(of: /SPARKLE_PUBLIC_ED_KEY = "?([A-Za-z0-9+\/=]+)"?;/).map { String($0.output.1) }+ #expect(keys.count == 2, "the app's Debug and Release configurations each name the key")+ #expect(Set(keys).count == 1)+ #expect(keys.first.flatMap { Data(base64Encoded: $0) }?.count == 32)+ }+}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/UpdateCheckerTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/UpdateCheckerTests.swiftindex 28626e57..e5a4f195 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/UpdateCheckerTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/UpdateCheckerTests.swift@@ -159,39 +159,6 @@ private final class CannedProtocol: URLProtocol, @unchecked Sendable {#expect(await checker.status(for: fed, preference: .automatic, casks: [current]) == .upToDate)}- /// Peel asks GitHub for its own latest release, the newest that is neither a draft nor a prerelease, and says a- /// newer one is out with the release's page, where it is downloaded. A page anywhere but GitHub is not believed,- /// and an answer in another form, or none, is a failed check.- @Test func peelLearnsOfItsOwnNewReleaseFromGitHub() async {- let peel = InstalledApp(- url: URL(filePath: "/Applications/Peel.app"),- bundleIdentifier: "com.tuguidragos.Peel",- name: "Peel",- version: "1.0.1",- updateFeed: .gitHubRelease(GitHubRelease.peel)- )- let page = "https://github.com/TuguiDragos/Peel/releases/tag/v1.0.2"-- reply("api.github.com", #"{"tag_name":"v1.0.2","html_url":"\#(page)","draft":false,"prerelease":false}"#)- #expect(- await checker.status(for: peel)- == .updateAvailable(version: "1.0.2", source: .developer, releaseNotes: URL(string: page))- )- #expect(CannedProtocol.asked.withLock { $0 } == ["api.github.com"])-- reply("api.github.com", #"{"tag_name":"v1.0.2","html_url":"https://example.com/peel.dmg"}"#)- #expect(await checker.status(for: peel) == .updateAvailable(version: "1.0.2", source: .developer, releaseNotes: nil))-- reply("api.github.com", #"{"tag_name":"v1.0.1","html_url":"https://github.com/TuguiDragos/Peel/releases/tag/v1.0.1"}"#)- #expect(await checker.status(for: peel) == .upToDate)-- reply("api.github.com", status: 404, #"{"message":"Not Found"}"#)- #expect(await checker.status(for: peel) == .failed)-- reply("api.github.com", "<html>")- #expect(await checker.status(for: peel) == .failed)- }-/// An app sold once for iPhone, iPad, and Mac has one record, of kind "software", whose version is the/// iPhone's. For an app the store doesn't sell in this region, or anymore, Apple answers with no record at/// all. Neither is a failed check: there is no Mac version to read, so the app is `.unsupported` and is asked@@ -234,7 +201,6 @@ private final class CannedProtocol: URLProtocol, @unchecked Sendable {$0 = ["feed.example.com": .init(body: Data(appcast("<item><sparkle:version>200</sparkle:version><sparkle:shortVersionString>2.0</sparkle:shortVersionString></item>").utf8)),"electron.example.com": .init(body: Data("version: 2.0.0\n".utf8)),- "api.github.com": .init(body: Data(#"{"tag_name":"v2.0","html_url":"https://github.com/example/editor/releases/tag/v2.0"}"#.utf8)),"itunes.apple.com": .init(body: Data(#"{"resultCount":1,"results":[{"kind":"mac-software","version":"2.0","trackViewUrl":"https://apps.apple.com/app/id1"}]}"#.utf8)),]}@@ -242,7 +208,6 @@ private final class CannedProtocol: URLProtocol, @unchecked Sendable {let feeds: [UpdateFeed] = [.sparkle(URL(string: "https://feed.example.com/appcast.xml")!),.electron(URL(string: "https://electron.example.com/latest-mac.yml")!),- .gitHubRelease(URL(string: "https://api.github.com/repos/example/editor/releases/latest")!),.appStore,]for feed in feeds {@@ -268,13 +233,6 @@ private final class CannedProtocol: URLProtocol, @unchecked Sendable {reply("itunes.apple.com", #"{"resultCount":1,"results":[{"kind":"mac-software","version":"2.0","releaseNotes":"• Faster search\n• Fixed a crash"}]}"#)#expect(await checker.answer(for: storeApp).notes == ReleaseNotes("• Faster search\n• Fixed a crash", format: .plainText))- let peel = InstalledApp(- url: URL(filePath: "/Applications/Peel.app"), bundleIdentifier: "com.tuguidragos.Peel", name: "Peel",- version: "1.0.1", updateFeed: .gitHubRelease(GitHubRelease.peel)- )- reply("api.github.com", ###"{"tag_name":"v1.0.2","html_url":"https://github.com/TuguiDragos/Peel/releases/tag/v1.0.2","body":"## Fixed\n- One"}"###)- #expect(await checker.answer(for: peel).notes == ReleaseNotes("## Fixed\n- One", format: .markdown))-let chat = InstalledApp(url: URL(filePath: "/Applications/Chat.app"), bundleIdentifier: "com.example.chat", name: "Chat",version: "1.0", updateFeed: .electron(URL(string: "https://updates.example.com/latest-mac.yml")!)diff --git a/Packages/PeelCore/Tests/PeelCoreTests/UpdateScheduleTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/UpdateScheduleTests.swiftindex ce4d450d..abb3cd5f 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/UpdateScheduleTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/UpdateScheduleTests.swift@@ -40,29 +40,6 @@ struct UpdateScheduleTests {#expect(first.isRetrying)}- @Test("Peel's own releases are asked about every day, whatever each answer says")- func peelsOwnReleasesAreAskedAboutEveryDay() {- let peel = InstalledApp(- url: URL(filePath: "/Applications/Peel.app", directoryHint: .isDirectory),- bundleIdentifier: "com.tuguidragos.Peel", name: "Peel"- )- let editor = InstalledApp(- url: URL(filePath: "/Applications/Editor.app", directoryHint: .isDirectory),- bundleIdentifier: "org.example.editor", name: "Editor"- )- let longest = UpdateSchedule.longestWait(for: peel)- var schedule = UpdateSchedule.next(after: .upToDate, from: moment, longest: longest)- var waits = [schedule.wait]- for status in [UpdateStatus.upToDate, .upToDate, .failed, .failed, .failed, .failed, .upToDate] {- schedule = UpdateSchedule.next(after: status, following: schedule, from: schedule.due, longest: longest)- waits.append(schedule.wait)- }-- #expect(waits.allSatisfy { $0 <= UpdateSchedule.base })- #expect(schedule.wait == UpdateSchedule.base)- #expect(UpdateSchedule.longestWait(for: editor) == UpdateSchedule.longest)- }-@Test("Failures double up to two days and stay there, rather than starting over at the ceiling")func theRetryCeilingHolds() {var schedule = UpdateSchedule.next(after: .failed, from: moment)diff --git a/Packages/PeelCore/Tests/PeelCoreTests/UpdateTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/UpdateTests.swiftindex 9da931b0..c95c1146 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/UpdateTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/UpdateTests.swift@@ -369,16 +369,18 @@ struct UpdateFeedDetectionTests {)}- /// Peel's own copy is checked against its releases on GitHub. No other app says where it is released, so no- /// other app is asked about there.- @Test func onlyPeelAsksGitHubForItsLatestRelease() throws {+ @Test func peelReadsItsOwnFeedAsAnySparkleAppDoes() throws {let directory = try TemporaryDirectory()let contents = try directory.directory("Peel.app/Contents")- let peel = UpdateFeed.detect(info: ["CFBundleIdentifier": "com.tuguidragos.Peel"], contents: contents, isFromAppStore: false, isSystemProtected: false)- #expect(peel == .gitHubRelease(GitHubRelease.peel))+ let feed = "https://github.com/TuguiDragos/Peel/releases/latest/download/appcast.xml"+ let peel = ["CFBundleIdentifier": "com.tuguidragos.Peel", "SUFeedURL": feed]+ #expect(+ UpdateFeed.detect(info: peel, contents: contents, isFromAppStore: false, isSystemProtected: false)+ == .sparkle(URL(string: feed)!)+ )#expect(UpdateFeed.detect(- info: ["CFBundleIdentifier": "com.example.editor"],+ info: ["CFBundleIdentifier": "com.tuguidragos.Peel"],contents: contents,isFromAppStore: false,isSystemProtected: falsediff --git a/Peel.xcodeproj/project.pbxproj b/Peel.xcodeproj/project.pbxprojindex 55765b10..3443070c 100644--- a/Peel.xcodeproj/project.pbxproj+++ b/Peel.xcodeproj/project.pbxproj@@ -20,6 +20,8 @@AA0000000000000000000012 /* PeelCore in Frameworks */ = {isa = PBXBuildFile; productRef = AA0000000000000000000011 /* PeelCore */; };AA0000000000000000000066 /* PeelLink in Frameworks */ = {isa = PBXBuildFile; productRef = AA0000000000000000000065 /* PeelLink */; };AA0000000000000000000068 /* PeelLink in Frameworks */ = {isa = PBXBuildFile; productRef = AA0000000000000000000067 /* PeelLink */; };+ AA0000000000000000000069 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA000000000000000000006B /* Sparkle.framework */; };+ AA000000000000000000006A /* Sparkle.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = AA000000000000000000006B /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };/* End PBXBuildFile section *//* Begin PBXContainerItemProxy section */@@ -98,6 +100,17 @@name = "Embed Command Line Tool";runOnlyForDeploymentPostprocessing = 0;};+ AA000000000000000000006D /* Embed Frameworks */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 10;+ files = (+ AA000000000000000000006A /* Sparkle.framework in Embed Frameworks */,+ );+ name = "Embed Frameworks";+ runOnlyForDeploymentPostprocessing = 0;+ };/* End PBXCopyFilesBuildPhase section *//* Begin PBXFileReference section */@@ -111,6 +124,7 @@AA0000000000000000000050 /* Peel.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = Peel.icon; sourceTree = "<group>"; };AA0000000000000000000051 /* Logo.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Logo.xcassets; sourceTree = "<group>"; };AA000000000000000000005B /* PeelUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PeelUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };+ AA000000000000000000006B /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = build/SparkleBuild/Build/Products/Release/Sparkle.framework; sourceTree = SOURCE_ROOT; };/* End PBXFileReference section *//* Begin PBXFileSystemSynchronizedRootGroup section */@@ -166,6 +180,7 @@files = (AA0000000000000000000012 /* PeelCore in Frameworks */,AA0000000000000000000068 /* PeelLink in Frameworks */,+ AA0000000000000000000069 /* Sparkle.framework in Frameworks */,);runOnlyForDeploymentPostprocessing = 0;};@@ -206,6 +221,7 @@AA0000000000000000000056 /* Localization */,AA000000000000000000004F /* Logo */,AA0000000000000000000031 /* Support */,+ AA000000000000000000006C /* Frameworks */,AA0000000000000000000003 /* Products */,);sourceTree = "<group>";@@ -222,6 +238,14 @@name = Products;sourceTree = "<group>";};+ AA000000000000000000006C /* Frameworks */ = {+ isa = PBXGroup;+ children = (+ AA000000000000000000006B /* Sparkle.framework */,+ );+ name = Frameworks;+ sourceTree = "<group>";+ };AA0000000000000000000056 /* Localization */ = {isa = PBXGroup;children = (@@ -328,6 +352,7 @@AA0000000000000000000007 /* Sources */,AA0000000000000000000008 /* Frameworks */,AA0000000000000000000009 /* Resources */,+ AA000000000000000000006D /* Embed Frameworks */,AA000000000000000000002C /* Embed Helper */,AA000000000000000000002E /* Embed Launch Daemon */,AA000000000000000000003E /* Embed Foundation Extensions */,@@ -843,6 +868,10 @@ENABLE_APP_SANDBOX = NO;ENABLE_HARDENED_RUNTIME = YES;ENABLE_PREVIEWS = YES;+ FRAMEWORK_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/build/SparkleBuild/Build/Products/Release",+ );GENERATE_INFOPLIST_FILE = YES;INFOPLIST_FILE = "Support/Peel-Info.plist";INFOPLIST_KEY_CFBundleDisplayName = Peel;@@ -855,6 +884,7 @@OTHER_SWIFT_FLAGS = "$(inherited) -enable-upcoming-feature ImmutableWeakCaptures";PRODUCT_BUNDLE_IDENTIFIER = com.tuguidragos.Peel;PRODUCT_NAME = "$(TARGET_NAME)";+ SPARKLE_PUBLIC_ED_KEY = "eAlTd7muV2cH25kXo/VTc9vwbLIbpwYDw9Z0PHQ5hVE=";SWIFT_APPROACHABLE_CONCURRENCY = YES;SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;SWIFT_EMIT_LOC_STRINGS = YES;@@ -878,6 +908,10 @@ENABLE_APP_SANDBOX = NO;ENABLE_HARDENED_RUNTIME = YES;ENABLE_PREVIEWS = YES;+ FRAMEWORK_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/build/SparkleBuild/Build/Products/Release",+ );GENERATE_INFOPLIST_FILE = YES;INFOPLIST_FILE = "Support/Peel-Info.plist";INFOPLIST_KEY_CFBundleDisplayName = Peel;@@ -890,6 +924,7 @@OTHER_SWIFT_FLAGS = "$(inherited) -enable-upcoming-feature ImmutableWeakCaptures";PRODUCT_BUNDLE_IDENTIFIER = com.tuguidragos.Peel;PRODUCT_NAME = "$(TARGET_NAME)";+ SPARKLE_PUBLIC_ED_KEY = "eAlTd7muV2cH25kXo/VTc9vwbLIbpwYDw9Z0PHQ5hVE=";SWIFT_APPROACHABLE_CONCURRENCY = YES;SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;SWIFT_EMIT_LOC_STRINGS = YES;diff --git a/Peel/HomeSnapshot.swift b/Peel/HomeSnapshot.swiftindex a45393db..8bc4882b 100644--- a/Peel/HomeSnapshot.swift+++ b/Peel/HomeSnapshot.swift@@ -64,13 +64,22 @@ enum HomeSnapshot {to: "\(directory)/detail-narrow-\(name).png")render(- AboutContent().environment(AppLibrary()).fixedSize(horizontal: false, vertical: true),+ AboutContent().environment(PeelUpdater()).fixedSize(horizontal: false, vertical: true),width: AboutContent.width,on: Album.sheet,scheme: scheme,contrast: contrast,to: "\(directory)/about-\(name).png")+ render(+ AboutContent().environment(PeelUpdater(found: "1.0.2"))+ .fixedSize(horizontal: false, vertical: true),+ width: AboutContent.width,+ on: Album.sheet,+ scheme: scheme,+ contrast: contrast,+ to: "\(directory)/about-update-\(name).png"+ )render(MenuBarPanel().environment(AppLibrary()).environment(stats).environment(found).environment(homebrew),diff --git a/Peel/Licenses/Sparkle-LICENSE.txt b/Peel/Licenses/Sparkle-LICENSE.txtnew file mode 100644index 00000000..abe6e04c--- /dev/null+++ b/Peel/Licenses/Sparkle-LICENSE.txt@@ -0,0 +1,134 @@+Copyright (c) 2006-2013 Andy Matuschak.+Copyright (c) 2009-2013 Elgato Systems GmbH.+Copyright (c) 2011-2014 Kornel Lesiński.+Copyright (c) 2015-2017 Mayur Pawashe.+Copyright (c) 2014 C.W. Betts.+Copyright (c) 2014 Petroules Corporation.+Copyright (c) 2014 Big Nerd Ranch.+All rights reserved.++Permission is hereby granted, free of charge, to any person obtaining a copy of+this software and associated documentation files (the "Software"), to deal in+the Software without restriction, including without limitation the rights to+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of+the Software, and to permit persons to whom the Software is furnished to do so,+subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.++=================+EXTERNAL LICENSES+=================++bspatch.c and bsdiff.c, from bsdiff 4.3 <http://www.daemonology.net/bsdiff/>:++Copyright 2003-2005 Colin Percival+All rights reserved++Redistribution and use in source and binary forms, with or without+modification, are permitted providing that the following conditions+are met:+1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.++THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+POSSIBILITY OF SUCH DAMAGE.++--++sais.c and sais.h, from sais-lite (2010/08/07) <https://sites.google.com/site/yuta256/sais>:++The sais-lite copyright is as follows:++Copyright (c) 2008-2010 Yuta Mori All Rights Reserved.++Permission is hereby granted, free of charge, to any person+obtaining a copy of this software and associated documentation+files (the "Software"), to deal in the Software without+restriction, including without limitation the rights to use,+copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the+Software is furnished to do so, subject to the following+conditions:++The above copyright notice and this permission notice shall be+included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR+OTHER DEALINGS IN THE SOFTWARE.++--++Portable C implementation of Ed25519, from https://github.com/orlp/ed25519++Copyright (c) 2015 Orson Peters <[email protected]>++This software is provided 'as-is', without any express or implied warranty. In no event will the+authors be held liable for any damages arising from the use of this software.++Permission is granted to anyone to use this software for any purpose, including commercial+applications, and to alter it and redistribute it freely, subject to the following restrictions:++1. The origin of this software must not be misrepresented; you must not claim that you wrote the+ original software. If you use this software in a product, an acknowledgment in the product+ documentation would be appreciated but is not required.++2. Altered source versions must be plainly marked as such, and must not be misrepresented as+ being the original software.++3. This notice may not be removed or altered from any source distribution.++--++SUSignatureVerifier.m:++Copyright (c) 2011 Mark Hamlin.++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted providing that the following conditions+are met:+1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.++THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+POSSIBILITY OF SUCH DAMAGE.diff --git a/Peel/Model/AppLibrary.swift b/Peel/Model/AppLibrary.swiftindex 8fad6382..6d710658 100644--- a/Peel/Model/AppLibrary.swift+++ b/Peel/Model/AppLibrary.swift@@ -504,10 +504,11 @@ final class AppLibrary {guard UserDefaults.standard.isOn(SettingsKey.checksForAppUpdates, whenNeverSet: true) else { return }let now = Date.now// An app is checked on a schedule kept by its identifier, so an app with none is left to Homebrew's answer.+ // Peel's own copies are left to Sparkle, which checks the one running and is the only way it updates.let wanted = targets.filter { app in- guard let identifier = app.bundleIdentifier, !isIgnored(app), !appsInATrash.contains(app.id) else {- return false- }+ guard let identifier = app.bundleIdentifier, !app.isPeelItself, !isIgnored(app),+ !appsInATrash.contains(app.id)+ else { return false }guard !force else { return true }// Already being checked by another round: a second answer could double the wait for the next check.guard !appsCheckingForUpdates.contains(app.id) else { return false }@@ -561,11 +562,7 @@ final class AppLibrary {guard let identifier = app.bundleIdentifier else { continue }memory[identifier] = UpdateMemory(status: kept,- schedule: UpdateSchedule.next(- after: status,- following: memory[identifier]?.schedule,- longest: UpdateSchedule.longestWait(for: app)- ),+ schedule: UpdateSchedule.next(after: status, following: memory[identifier]?.schedule),checked: status == .failed ? memory[identifier]?.checked : .now,describing: app,developer: answer.developer ?? memory[identifier]?.developer@@ -645,7 +642,7 @@ final class AppLibrary {/// Whether an update is waiting for `app`. An ignored app has none, and neither has one whose waiting/// version was skipped. The list, the menu bar, and the notification all ask this, so they always agree.- /// Peel's own is told by About instead (`newerPeel`).+ /// Peel's own updates are Sparkle's (`PeelUpdater`).func hasUpdate(_ app: InstalledApp) -> Bool {!app.isPeelItself && updatePreferences.isWaiting(updateStatuses[app.id], for: app)}@@ -655,24 +652,6 @@ final class AppLibrary {app.isPeelItself ? nil : updatePreferences.shownStatus(updateStatuses[app.id], for: app)}- /// A newer release of the copy of Peel that is running, which About tells and never installs.- struct PeelUpdate: Equatable {- let version: String- /// The release's page on GitHub, where it is downloaded.- let page: URL?- /// The command that upgrades a copy Homebrew installed, which Peel never runs on itself.- let homebrewCommand: String?- }-- var newerPeel: PeelUpdate? {- guard- let peel = apps.first(where: \.isTheRunningCopy),- let status = updateStatuses[peel.id], let version = status.displayVersion- else { return nil }- let command = status.source == .homebrew ? cask(for: peel).map { "brew upgrade --cask \($0.name)" } : nil- return PeelUpdate(version: version, page: status.releaseNotes, homebrewCommand: command)- }-var appsWithUpdates: [InstalledApp] { apps.filter(hasUpdate) }/// The apps the menu bar item and its panel count. They follow `hasUpdate(_:)`, but while a round of checks runsdiff --git a/Peel/Model/PeelNotifications.swift b/Peel/Model/PeelNotifications.swiftindex dc44486c..ff3f2a51 100644--- a/Peel/Model/PeelNotifications.swift+++ b/Peel/Model/PeelNotifications.swift@@ -8,7 +8,6 @@ import UserNotificationsfinal class PeelNotifications: NSObject, UNUserNotificationCenterDelegate {private nonisolated static let pathKey = "path"private nonisolated static let toolKey = "tool"- private nonisolated static let aboutKey = "about"func activate() {UNUserNotificationCenter.current().delegate = self@@ -61,18 +60,6 @@ final class PeelNotifications: NSObject, UNUserNotificationCenterDelegate {UNUserNotificationCenter.current().add(request)}- /// Tells once that a newer Peel is out. Peel never installs itself, so the notification leads to About.- func notify(newerPeel update: AppLibrary.PeelUpdate) {- let content = UNMutableNotificationContent()- content.title = String(localized: "Peel \(update.version) is out")- content.body = update.homebrewCommand == nil- ? String(localized: "Click to download it in About, then replace this copy in Applications.")- : String(localized: "Homebrew installed this copy. Click to see the command that upgrades it, in About.")- content.userInfo = [Self.aboutKey: true]- let request = UNNotificationRequest(identifier: "newer-peel", content: content, trigger: nil)- UNUserNotificationCenter.current().add(request)- }-func notify(diskNearlyFull storage: DeviceInfo.Storage) {let content = UNMutableNotificationContent()content.title = String(localized: "Your disk is almost full")@@ -93,10 +80,6 @@ final class PeelNotifications: NSObject, UNUserNotificationCenterDelegate {_ center: UNUserNotificationCenter,didReceive response: UNNotificationResponse) async {- if response.notification.request.content.userInfo[Self.aboutKey] != nil {- await MainActor.run { Navigator.shared.showAbout() }- return- }if let tool = response.notification.request.content.userInfo[Self.toolKey] as? String {await MainActor.run {if let tool = Tool(rawValue: tool) {diff --git a/Peel/Model/PeelUpdater.swift b/Peel/Model/PeelUpdater.swiftnew file mode 100644index 00000000..a73deac7--- /dev/null+++ b/Peel/Model/PeelUpdater.swift@@ -0,0 +1,77 @@+import Foundation+import PeelCore+import Sparkle++/// Peel's own updates, through Sparkle: it reads the signed feed, shows the new version to the person, and installs it+/// only when they choose, once the update's signature checks out. What Sparkle may do is set in the Info.plist.+///+/// A new version found while the person works is told gently, by the face, the sidebar and About, and Sparkle's window+/// opens when they ask for it; Sparkle shows it at once only when it would have their full attention anyway.+@Observable+final class PeelUpdater: NSObject, SPUUpdaterDelegate, SPUStandardUserDriverDelegate {+ /// The version Sparkle last found newer than this copy, nil until it finds one and once it finds none.+ private(set) var newerVersion: String?+ private(set) var canCheckForUpdates = false+ @ObservationIgnored private var controller: SPUStandardUpdaterController?+ @ObservationIgnored private var canCheck: NSKeyValueObservation?++ #if DEBUG+ /// About as it reads once Sparkle found `version`, for `HomeSnapshot`.+ convenience init(found version: String) {+ self.init()+ newerVersion = version+ }+ #endif++ func start() {+ guard controller == nil else { return }+ // Sparkle asks through a session that keeps cookies, and GitHub sets one that would come back with every later+ // check, linking them all to this Mac. Peel takes no cookies and forgets any it was given.+ HTTPCookieStorage.shared.cookieAcceptPolicy = .never+ HTTPCookieStorage.shared.removeCookies(since: .distantPast)+ let controller = SPUStandardUpdaterController(+ startingUpdater: false, updaterDelegate: self, userDriverDelegate: self+ )+ self.controller = controller+ // Peel's own update checks tell a server no more than this either.+ controller.updater.userAgentString = "Peel"+ controller.updater.httpHeaders = ["Accept-Language": "*"]+ let options: NSKeyValueObservingOptions = [.initial, .new]+ canCheck = controller.updater.observe(\.canCheckForUpdates, options: options) { [weak self] updater, _ in+ MainActor.assumeIsolated { self?.canCheckForUpdates = updater.canCheckForUpdates }+ }+ controller.startUpdater()+ }++ func checkForUpdates() {+ controller?.checkForUpdates(nil)+ }++ func updater(_ updater: SPUUpdater, mayPerform updateCheck: SPUUpdateCheck) throws {+ let checksForAppUpdates = UserDefaults.standard.isOn(SettingsKey.checksForAppUpdates, whenNeverSet: true)+ guard OwnUpdateCheck.mayAsk(askedByThePerson: updateCheck == .updates, checksForAppUpdates: checksForAppUpdates)+ else { throw UpdateChecksAreOff() }+ }++ func updater(_ updater: SPUUpdater, didFindValidUpdate item: SUAppcastItem) {+ newerVersion = item.displayVersionString+ }++ func updaterDidNotFindUpdate(_ updater: SPUUpdater, error: any Error) {+ newerVersion = nil+ }++ nonisolated var supportsGentleScheduledUpdateReminders: Bool { true }++ nonisolated func standardUserDriverShouldHandleShowingScheduledUpdate(+ _ update: SUAppcastItem,+ andInImmediateFocus immediateFocus: Bool+ ) -> Bool {+ immediateFocus+ }+}++/// Why Sparkle skips a check it starts on its own, in its log. It shows nothing and schedules the next check.+private struct UpdateChecksAreOff: LocalizedError {+ var errorDescription: String? { "Check for app updates is off." }+}diff --git a/Peel/Navigation/Links.swift b/Peel/Navigation/Links.swiftindex 2fd57786..8ff4a568 100644--- a/Peel/Navigation/Links.swift+++ b/Peel/Navigation/Links.swift@@ -5,10 +5,10 @@ import PeelCoreenum Links {static let author = URL(string: "https://tuguidragos.com")!static let repository = URL(string: "https://github.com/TuguiDragos/Peel")!- static let latestRelease = repository.appending(path: "releases/latest")static let license = URL(string: "https://www.gnu.org/licenses/gpl-3.0.html")!static let argumentParser = URL(string: "https://github.com/apple/swift-argument-parser")!static let blobatar = URL(string: "https://github.com/Alain00/blobatar")!+ static let sparkle = URL(string: "https://github.com/sparkle-project/Sparkle")!/// A vulnerability's page on OSV.dev, which shows every record its API returns, under any of its identifiers.static func vulnerability(_ identifier: String) -> URL {diff --git a/Peel/Navigation/Navigator.swift b/Peel/Navigation/Navigator.swiftindex 071481c1..c1d91830 100644--- a/Peel/Navigation/Navigator.swift+++ b/Peel/Navigation/Navigator.swift@@ -25,10 +25,4 @@ final class Navigator {openWindow?(id: PeelApp.mainWindowID)NSApp.activate()}-- /// Opens About, where a newer Peel is told with how to get it, and brings Peel forward.- func showAbout() {- openWindow?(id: AboutView.windowID)- NSApp.activate()- }}diff --git a/Peel/Navigation/PeelCommands.swift b/Peel/Navigation/PeelCommands.swiftindex 068aa4ff..2cddc005 100644--- a/Peel/Navigation/PeelCommands.swift+++ b/Peel/Navigation/PeelCommands.swift@@ -47,6 +47,7 @@ struct MenuCommand {struct PeelCommands: Commands {/// What the Applications toolbar's two menus act on, so the menu bar can offer them as well.let library: AppLibrary+ let updater: PeelUpdaterlet homebrew: HomebrewLibrarylet textEditing: TextEditinglet sheetInFront: SheetInFront@@ -89,6 +90,8 @@ struct PeelCommands: Commands {Button("About Peel") {openWindow(id: AboutView.windowID)}+ Button("Check for Updates\u{2026}", action: updater.checkForUpdates)+ .disabled(!updater.canCheckForUpdates)}// Replaces the standard Help item, which in an app with no help book only shows an alert that help isdiff --git a/Peel/Navigation/ToolSidebar.swift b/Peel/Navigation/ToolSidebar.swiftindex 3a2c4c52..b8834b62 100644--- a/Peel/Navigation/ToolSidebar.swift+++ b/Peel/Navigation/ToolSidebar.swift@@ -13,7 +13,7 @@ enum SidebarDestination: Hashable {struct ToolSidebar: View {@Environment(HomeModel.self) private var home- @Environment(AppLibrary.self) private var library+ @Environment(PeelUpdater.self) private var updater@Environment(\.accessibilityReduceMotion) private var reduceMotion@AppStorage("sidebar.apps.expanded") private var isAppsExpanded = true@AppStorage("sidebar.storage.expanded") private var isStorageExpanded = true@@ -115,7 +115,7 @@ struct ToolSidebar: View {}.lineLimit(1).frame(maxWidth: .infinity, alignment: .leading)- if library.newerPeel != nil {+ if updater.newerVersion != nil {Image(systemName: "arrow.down.circle.fill").resizable().scaledToFit()@@ -126,7 +126,7 @@ struct ToolSidebar: View {.transition(.opacity)}}- .motion(value: library.newerPeel)+ .motion(value: updater.newerVersion).padding(.leading, Head.leading).padding(.trailing, Head.trailing).padding(.vertical, Head.vertical)@@ -138,11 +138,11 @@ struct ToolSidebar: View {.padding(.top, Head.rise).padding(.bottom, 8).accessibilityLabel(Text(AboutView.title))- .accessibilityValue(library.newerPeel.map { Text("Version \($0.version) is out.") } ?? Text(verbatim: AppVersion.display))+ .accessibilityValue(updater.newerVersion.map { Text("Version \($0) is out.") } ?? Text(verbatim: AppVersion.display))}private var versionLine: Text {- library.newerPeel.map { Text("\($0.version) is out") } ?? Text(verbatim: AppVersion.display)+ updater.newerVersion.map { Text("\($0) is out") } ?? Text(verbatim: AppVersion.display)}/// The head's measures, which the ruler also reads to leave its second line room beside the face and the icon.@@ -276,7 +276,7 @@ struct ToolSidebar: View {}private var headRoom: CGFloat {- let icon = library.newerPeel == nil ? 0 : Head.spacing + Head.icon+ let icon = updater.newerVersion == nil ? 0 : Head.spacing + Head.iconreturn 2 * Head.margin + Head.leading + Head.face + Head.spacing + icon + Head.trailing - Self.rowInsets}diff --git a/Peel/PeelApp.swift b/Peel/PeelApp.swiftindex 45abc194..6b1e931c 100644--- a/Peel/PeelApp.swift+++ b/Peel/PeelApp.swift@@ -53,6 +53,7 @@ struct PeelApp: App {@State private var plugins = PluginLibrary()@State private var homebrew = HomebrewLibrary()@State private var helper = HelperModel()+ @State private var updater = PeelUpdater()@State private var home = HomeModel()@State private var history: RemovalHistoryStore@State private var outcome: RemovalOutcome@@ -224,22 +225,6 @@ struct PeelApp: App {}}- /// Tells once for each newer version of Peel, whichever check found it.- private func followNewerPeel() async {- for await _ in Observations({ library.newerPeel?.version }) {- guard !Task.isCancelled else { return }- let defaults = UserDefaults.standard- let told = defaults.string(forKey: SettingsKey.toldNewerPeel)- let answer = NewerPeelNotice.check(newer: library.newerPeel?.version, told: told)- if answer.told != told {- defaults.set(answer.told, forKey: SettingsKey.toldNewerPeel)- }- if answer.tell, let update = library.newerPeel {- notifications.notify(newerPeel: update)- }- }- }-/// Runs the update round every hour while update checks are on. Each app's schedule decides whether the round/// checks it.private func askWhenDue() async {@@ -283,13 +268,14 @@ struct PeelApp: App {Navigator.shared.openWindow = openWindowbackground.start([followFolders, followAppsForTheTrash, askWhenDue, followFindings, followActivations, watchFreeSpace,- followHelper, followNewerPeel,+ followHelper,])textEditing.start()sheetInFront.start()// Work for Peel coming forward is in `followActivations`.guard !hasLaunched else { return }hasLaunched = true+ updater.start()Task { await launch() }}@@ -359,6 +345,7 @@ struct PeelApp: App {.environment(stats).environment(found).environment(library)+ .environment(updater).environment(orphans).environment(projects).environment(installers)@@ -402,7 +389,10 @@ struct PeelApp: App {}.defaultSize(width: 1120, height: 764).commands {- PeelCommands(library: library, homebrew: homebrew, textEditing: textEditing, sheetInFront: sheetInFront)+ PeelCommands(+ library: library, updater: updater, homebrew: homebrew, textEditing: textEditing,+ sheetInFront: sheetInFront+ )}.onChange(of: watchesTrash) { _, isWatching inif isWatching {@@ -469,7 +459,7 @@ struct PeelApp: App {Window(Text(AboutView.title), id: AboutView.windowID) {AboutView()- .environment(library)+ .environment(updater)}.windowResizability(.contentSize).windowStyle(.hiddenTitleBar)diff --git a/Peel/Views/AboutView.swift b/Peel/Views/AboutView.swiftindex 0d4ca764..c6e4d37d 100644--- a/Peel/Views/AboutView.swift+++ b/Peel/Views/AboutView.swift@@ -7,7 +7,7 @@ struct AboutContent: View {static let width: CGFloat = 380@Environment(\.colorScheme) private var colorScheme- @Environment(AppLibrary.self) private var library+ @Environment(PeelUpdater.self) private var updatervar body: some View {VStack(spacing: 12) {@@ -26,8 +26,8 @@ struct AboutContent: View {.font(.callout).foregroundStyle(.secondary).textSelection(.enabled)- if let update = library.newerPeel {- PeelUpdateNotice(update: update)+ if let version = updater.newerVersion {+ PeelUpdateNotice(version: version, install: updater.checkForUpdates)}Text("Remove apps and what they leave behind, free up space, and fine-tune your Mac.",@@ -51,6 +51,7 @@ struct AboutContent: View {let page = switch name {case "GPL-3.0": Links.licensecase "blobatar-LICENSE": Links.blobatar+ case "Sparkle-LICENSE": Links.sparkledefault: Links.argumentParser}NSWorkspace.shared.open(page)@@ -89,6 +90,10 @@ struct AboutContent: View {"The face’s motion is adapted from [blobatar](peel-license:blobatar-LICENSE)",comment: "The face is Peel’s logo with eyes, at the head of the sidebar. Keep the link as it is.")+ Text(+ "Peel updates itself with [Sparkle](peel-license:Sparkle-LICENSE)",+ comment: "Sparkle is the open source framework that installs Peel’s updates. Keep the link as it is."+ )Link(destination: Links.repository) {Text(verbatim: "github.com/TuguiDragos/Peel").creditTarget()@@ -114,31 +119,18 @@ struct AboutContent: View {}}-/// A newer Peel than this copy, and where to get it. Peel downloads and installs nothing itself.+/// A newer Peel than this copy. Sparkle's window shows what is new in it and installs it when the person chooses.private struct PeelUpdateNotice: View {- let update: AppLibrary.PeelUpdate+ let version: String+ let install: () -> Voidvar body: some View {VStack(spacing: 8) {- Text("Version \(update.version) is out.")+ Text("Version \(version) is out.").font(.system(.callout, design: .rounded, weight: .bold)).foregroundStyle(Album.orangeInk)- if let command = update.homebrewCommand {- Text("Homebrew installed this copy, so upgrade it by running the command in Terminal.")- .multilineTextAlignment(.center)- .foregroundStyle(.secondary)- Text(verbatim: command)- .font(.callout.monospaced())- .textSelection(.enabled)- CopyButton(text: command, title: "Copy Command")- .buttonStyle(StickerButtonStyle(fill: Album.orange, size: 12, ink: Album.onOrange))- } else {- Text("Download it, then replace this copy in Applications.")- .multilineTextAlignment(.center)- .foregroundStyle(.secondary)- Button("Download") { NSWorkspace.shared.open(update.page ?? Links.latestRelease) }- .buttonStyle(StickerButtonStyle(fill: Album.orange, size: 12, ink: Album.onOrange))- }+ Button("Install Update\u{2026}", action: install)+ .buttonStyle(StickerButtonStyle(fill: Album.orange, size: 12, ink: Album.onOrange))}.font(.callout).padding(.vertical, 4)diff --git a/Peel/Views/Settings/PrivacySettingsView.swift b/Peel/Views/Settings/PrivacySettingsView.swiftindex feeafbd9..91bc1ade 100644--- a/Peel/Views/Settings/PrivacySettingsView.swift+++ b/Peel/Views/Settings/PrivacySettingsView.swift@@ -11,8 +11,7 @@ struct PrivacySettingsView: View {private let hosts = [Host(address: "itunes.apple.com", purpose: "The latest version of apps installed from the App Store."),- Host(address: "github.com", purpose: "The release feed of apps that update through GitHub, and wherever GitHub sends the download. Homebrew also updates itself and its taps from here when you ask it to update, upgrade, or repair its taps."),- Host(address: "api.github.com", purpose: "The latest release of Peel itself. Peel says when a new one is out and downloads nothing."),+ Host(address: "github.com", purpose: "Peel’s own update feed, the release feed of apps that update through GitHub, and wherever GitHub sends the download. Homebrew also updates itself and its taps from here when you ask it to update, upgrade, or repair its taps."),Host(address: "formulae.brew.sh", purpose: "Homebrew’s own package list, downloaded when you ask Homebrew to update or upgrade."),Host(address: "ghcr.io", purpose: "Where Homebrew downloads the packages it upgrades. A cask comes from its maker’s own address."),Host(address: "api.osv.dev", purpose: "The list of known vulnerabilities Homebrew checks formulae against."),diff --git a/Peel/Views/Settings/SettingsView.swift b/Peel/Views/Settings/SettingsView.swiftindex b801852e..a1d519bf 100644--- a/Peel/Views/Settings/SettingsView.swift+++ b/Peel/Views/Settings/SettingsView.swift@@ -145,7 +145,6 @@ enum SettingsKey {static let ignoredUpdateApps = UpdatePreferences.Key.ignoredAppsstatic let skippedUpdateVersions = UpdatePreferences.Key.skippedVersionsstatic let updateMemory = "updateMemory"- static let toldNewerPeel = "newerPeel.told"/// Nil once the link leads to this copy's tool, and while something that may not be Peel's is where it goes.static func commandLineInstallCommand(diff --git a/Peel/Views/Stickers/PeelFace.swift b/Peel/Views/Stickers/PeelFace.swiftindex 6f6b3ff4..1ba60875 100644--- a/Peel/Views/Stickers/PeelFace.swift+++ b/Peel/Views/Stickers/PeelFace.swift@@ -10,7 +10,7 @@ struct PeelFace: View {var size: CGFloat@Environment(RemovalHistoryStore.self) private var history- @Environment(AppLibrary.self) private var library+ @Environment(PeelUpdater.self) private var updater@Environment(\.accessibilityReduceMotion) private var reduceMotion/// Lets the face rest while no window is open. A closed window keeps its views, and no occlusion change/// reaches them, but the scene phase turns to `.background`, and back to active when the window returns.@@ -25,8 +25,8 @@ struct PeelFace: View {.onChange(of: history.justMoved) { _, moved inif moved != nil { Self.follow.cheer() }}- .task(id: library.newerPeel?.version) {- if let version = library.newerPeel?.version { Self.follow.surprise(for: version) }+ .task(id: updater.newerVersion) {+ if let version = updater.newerVersion { Self.follow.surprise(for: version) }}}diff --git a/README.md b/README.mdindex b6bcff9a..083dbf5b 100644--- a/README.md+++ b/README.md@@ -56,10 +56,10 @@ brew install --cask tuguidragos/tap/peelHomebrew also puts the `peel` command on your path.-To update Peel, download the new release and replace the copy in your Applications folder, or run-`brew upgrade --cask peel`. Peel asks GitHub once a day whether a new version is out, while update checks are on,-and About Peel then says so, with a Download button, or the Homebrew command for a copy Homebrew installed,-and downloads nothing itself. If you allow Peel's notifications, one also tells you, once for each version.+To update Peel, choose Check for Updates… in the Peel menu. While Check for app updates is on, Peel also looks once a+day, and About Peel says when a new version is out. Peel shows what is new and installs the update only when you+choose, once it has checked that the update is signed as Peel's. A copy Homebrew installed updates the same way, and+`brew upgrade --cask peel` updates it too.## What Peel does@@ -213,11 +213,12 @@ again.## Build it yourself-You need macOS Tahoe 26 or later, Xcode 27 (Swift 6.4), and a team to sign with, even a free one. Open-`Peel.xcodeproj`, choose your team for the four targets under Signing & Capabilities, and run the Peel scheme. Or,-from Terminal, with your own team ID:+You need macOS Tahoe 26 or later, Xcode 27 (Swift 6.4), and a team to sign with, even a free one. First build Sparkle,+which updates Peel, from its source with `zsh Scripts/build_sparkle.sh`. Then open `Peel.xcodeproj`, choose your team+for the four targets under Signing & Capabilities, and run the Peel scheme. Or, from Terminal, with your own team ID:```bash+zsh Scripts/build_sparkle.shxcodebuild -project Peel.xcodeproj -scheme Peel -configuration Debug -derivedDataPath build/DerivedData DEVELOPMENT_TEAM=YOUR_TEAM_ID buildswift test --package-path Packages/PeelCore```@@ -246,6 +247,8 @@ with all my heart.every breath, glance, and smile it makes began there.- [Swift Argument Parser](https://github.com/apple/swift-argument-parser), by Apple, which every `peel` command isbuilt on.+- [Sparkle](https://github.com/sparkle-project/Sparkle), by the Sparkle Project, which updates Peel and checks that+ every update is signed as Peel's.- [AppCleaner](https://freemacsoft.net/appcleaner/), by FreeMacSoft, and[Pearcleaner](https://github.com/alienator88/Pearcleaner), by alienator88, for the inspiration.- [Fable](https://claude.com/product/overview) and [Claude](https://claude.com), by@@ -267,9 +270,10 @@ Copyright (C) 2026 [Țugui Dragoș-Constantin](https://tuguidragos.com)Peel moves the files it removes to the Trash, and History can put them back. As the GPL states, it comes with nowarranty, to the extent the law allows.-swift-argument-parser, Peel's only dependency, is by Apple Inc. under the Apache License 2.0. The motion of the-face at the head of the sidebar is ported from [blobatar](https://github.com/Alain00/blobatar), by Alain, under the-MIT License. Both licenses ship inside the app and are kept in `Peel/Licenses/`.+swift-argument-parser is by Apple Inc. under the Apache License 2.0, and Sparkle, which updates Peel, is by the+Sparkle Project under the MIT License. The motion of the face at the head of the sidebar is ported from+[blobatar](https://github.com/Alain00/blobatar), by Alain, under the MIT License. These licenses ship inside the app+and are kept in `Peel/Licenses/`.## More from Țugui Dragoșdiff --git a/SECURITY.md b/SECURITY.mdindex b86eda33..77803bbf 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -142,6 +142,10 @@ have, and anything that destroys data that cannot be recovered.code execution, or that leaks data off the Mac, is in scope.- Leaking the list of a user's installed apps, file paths, or scan results off the Mac, beyond what[PRIVACY.md](PRIVACY.md) describes.+- Peel's own updates: getting Peel to install, or to offer, an update that is not signed with Peel's+ update key, one older than the copy installed, or one from anywhere but its signed feed. Peel+ updates itself with Sparkle, so a flaw in Sparkle that reaches Peel is in scope too, and it is+ passed on to the Sparkle project.**What Peel reads, runs, and writes.**diff --git a/Scripts/build_sparkle.sh b/Scripts/build_sparkle.shnew file mode 100644index 00000000..d1522bfa--- /dev/null+++ b/Scripts/build_sparkle.sh@@ -0,0 +1,33 @@+#!/bin/zsh+# Builds Sparkle, which updates Peel, from its source at a fixed commit: the framework Peel embeds, and the tools a+# release signs its update with. Every program Peel ships has an arm64e slice, which Sparkle's prebuilt framework lacks,+# and Sparkle's XPC services are left out, since Sparkle uses them only in a sandboxed app.+#+# Usage: zsh Scripts/build_sparkle.sh (run once before building Peel, and again when the version below changes)+set -euo pipefail+cd "$(dirname "$0")/.."++version=2.10.0+commit=eef1a539a373c1f1a320624b1130fc5de7b2e100+source=build/Sparkle++if [ ! -d "$source" ]; then+ git -c advice.detachedHead=false clone --quiet --depth 1 --branch "$version" \+ https://github.com/sparkle-project/Sparkle.git "$source"+fi+if [ "$(git -C "$source" rev-parse HEAD)" != "$commit" ] || [ -n "$(git -C "$source" status --porcelain)" ]; then+ echo "REFUSED: $source is not Sparkle $version as published ($commit)."+ exit 1+fi++for scheme in Sparkle generate_keys sign_update generate_appcast; do+ if ! xcodebuild -project "$source/Sparkle.xcodeproj" -scheme "$scheme" -configuration Release \+ -derivedDataPath build/SparkleBuild ENABLE_POINTER_AUTHENTICATION=YES \+ SPARKLE_EMBED_INSTALLER_LAUNCHER_XPC_SERVICE=0 SPARKLE_EMBED_DOWNLOADER_XPC_SERVICE=0 \+ build > build/SparkleBuild.log 2>&1; then+ tail -20 build/SparkleBuild.log+ echo "REFUSED: Sparkle's $scheme did not build. The whole log is build/SparkleBuild.log."+ exit 1+ fi+done+echo "Sparkle $version: build/SparkleBuild/Build/Products/Release"diff --git a/Scripts/release.sh b/Scripts/release.shindex a1bd7461..a8f32d5d 100755--- a/Scripts/release.sh+++ b/Scripts/release.sh@@ -44,6 +44,9 @@ if ! swift test --package-path Packages/PeelCore -Xswiftc -warnings-as-errors >figrep -E "Test run with" "$build/test.log" || true+echo "== Sparkle"+zsh Scripts/build_sparkle.sh+echo "== Archiving"# The output goes to a log, not through a pipe, so the `if` checks xcodebuild's own exit status. Pointer# authentication is set here as well as in the project, since Xcode gives the Swift packages only the settings@@ -95,16 +98,27 @@ thenfigrep -E "EXPORT" "$build/export.log" || true-echo "== What the four binaries are signed with"+echo "== What every program is signed with"+sparkle="$app/Contents/Frameworks/Sparkle.framework"for binary in \"$app" \"$app/Contents/MacOS/PeelHelper" \"$app/Contents/PlugIns/PeelFinder.appex" \- "$app/Contents/Helpers/peel"+ "$app/Contents/Helpers/peel" \+ "$sparkle" \+ "$sparkle/Versions/B/Autoupdate" \+ "$sparkle/Versions/B/Updater.app"doecho "-- $binary"[ -e "$binary" ] || { echo " REFUSED: $binary is not there"; exit 1; }- codesign -d --verbose=2 "$binary" 2>&1 | grep -E "Authority|TeamIdentifier|Timestamp|flags" || true+ signature="$(codesign -d --verbose=2 "$binary" 2>&1)" \+ || { echo " REFUSED: codesign cannot read $binary"; exit 1; }+ grep -E "Authority|TeamIdentifier|Timestamp|flags" <<< "$signature" || true+ # Notarization needs each of these, and an update Sparkle installs is checked against the same signature.+ [[ "$signature" == *"Authority=Developer ID Application: "*"(6R6J264YA2)"* ]] \+ || { echo " REFUSED: $binary is not signed with Peel's Developer ID"; exit 1; }+ [[ "$signature" == *"flags="*"runtime"* ]] || { echo " REFUSED: $binary lacks the hardened runtime"; exit 1; }+ [[ "$signature" == *"Timestamp="* ]] || { echo " REFUSED: $binary has no secure timestamp"; exit 1; }# Stop if `codesign` cannot read the binary, since its entitlements then cannot be checked.entitlements="$(codesign -d --entitlements - --xml "$binary" 2>/dev/null)" \|| { echo " REFUSED: codesign cannot read $binary"; exit 1; }@@ -118,13 +132,24 @@ dofidone+# Sparkle's XPC services are for sandboxed apps; Peel's build leaves them out, and nothing may bring them back.+[ -z "$(find "$sparkle" -name '*.xpc')" ] || { echo "REFUSED: Sparkle.framework carries XPC services"; exit 1; }++# Every program and library in the app, found rather than listed, so one added later is checked too.+executables=()+for file in ${(f)"$(find "$app" -type f -perm +111)"}; do+ [[ "$(file -b "$file")" == Mach-O* ]] && executables+=("$file")+done+for expected in MacOS/Peel MacOS/PeelHelper PlugIns/PeelFinder.appex/Contents/MacOS/PeelFinder Helpers/peel \+ Frameworks/Sparkle.framework/Versions/B/Sparkle Frameworks/Sparkle.framework/Versions/B/Autoupdate \+ Frameworks/Sparkle.framework/Versions/B/Updater.app/Contents/MacOS/Updater+do+ (( ${executables[(Ie)$app/Contents/$expected]} )) || { echo "REFUSED: $expected was not found"; exit 1; }+done+echo "== Architectures"# arm64e is the slice with pointer authentication, which Apple silicon runs; arm64 and x86_64 are for the rest.-for executable in \- "$app/Contents/MacOS/Peel" \- "$app/Contents/MacOS/PeelHelper" \- "$app/Contents/PlugIns/PeelFinder.appex/Contents/MacOS/PeelFinder" \- "$app/Contents/Helpers/peel"+for executable in $executablesdoarchs="$(lipo -archs "$executable")" || { echo "REFUSED: lipo cannot read $executable"; exit 1; }for arch in arm64e arm64 x86_64; do@@ -136,11 +161,7 @@ echo "Every binary: arm64e, arm64, x86_64"echo "== Signed class data"# In the arm64e slice, pointer authentication also signs each class's read-only data, which the Objective-C image# info marks with its flag 0x10; one object built without it turns it off for the whole binary.-for executable in \- "$app/Contents/MacOS/Peel" \- "$app/Contents/MacOS/PeelHelper" \- "$app/Contents/PlugIns/PeelFinder.appex/Contents/MacOS/PeelFinder" \- "$app/Contents/Helpers/peel"+for executable in $executablesdoflags="$(otool -arch arm64e -s __DATA_CONST __objc_imageinfo "$executable" | awk 'END { print $3 }')"[[ -n "$flags" ]] && (( 16#$flags & 16#10 )) || { echo "REFUSED: $executable has its class data unsigned"; exit 1; }diff --git a/Support/Peel-Info.plist b/Support/Peel-Info.plistindex 4c454e1b..2fd0f51d 100644--- a/Support/Peel-Info.plist+++ b/Support/Peel-Info.plist@@ -40,5 +40,17 @@</array></dict></array>+ <key>SUFeedURL</key>+ <string>https://github.com/TuguiDragos/Peel/releases/latest/download/appcast.xml</string>+ <key>SUPublicEDKey</key>+ <string>$(SPARKLE_PUBLIC_ED_KEY)</string>+ <key>SUVerifyUpdateBeforeExtraction</key>+ <true/>+ <key>SURequireSignedFeed</key>+ <true/>+ <key>SUEnableAutomaticChecks</key>+ <true/>+ <key>SUAllowsAutomaticUpdates</key>+ <false/></dict></plist>