From 475737a6adce5b16e12ff23c9a57d516026bd4d6 Mon Sep 17 00:00:00 2001 From: Scott Garrett Date: Sat, 28 Nov 2026 13:54:31 -0500 Subject: [PATCH] Drop the Sparkle updater and stamp the fork version 1.9.5mkv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A standalone fork must not pull its updates from subler.org's appcast: the feed serves upstream builds signed with the upstream Ed key, so the whole integration goes — the Check for Updates menu item and the SPUStandardUpdaterController, the SUFeedURL/SUAllowsAutomaticUpdates/ SUPublicEDKey Info.plist entries, their six localized titles, and the Sparkle SPM package reference. The app now has no package dependencies. Also captures the Xcode 27.2 settings migration (deployment target now $(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET), so plain xcodebuild works with no CLI override — verified with a clean build), the 1.9.5mkv marketing version, and the matching MP42Foundation submodule bump. README and CLAUDE.md lose the now-stale Sparkle and 10.13 notes. Co-Authored-By: Claude Code --- Base.lproj/MainMenu.xib | 7 ----- CLAUDE.md | 10 +++---- Info.plist | 6 ---- MP42Foundation | 2 +- README.md | 14 ++++++---- Subler.xcodeproj/project.pbxproj | 47 +++++++++----------------------- es-419.lproj/MainMenu.strings | 2 -- fr.lproj/MainMenu.strings | 2 -- it.lproj/MainMenu.strings | 2 -- pt-BR.lproj/MainMenu.strings | 2 -- zh-CN.lproj/MainMenu.strings | 2 -- zh-Hans.lproj/MainMenu.strings | 2 -- 12 files changed, 28 insertions(+), 70 deletions(-) diff --git a/Base.lproj/MainMenu.xib b/Base.lproj/MainMenu.xib index d794635..2e4966e 100755 --- a/Base.lproj/MainMenu.xib +++ b/Base.lproj/MainMenu.xib @@ -23,12 +23,6 @@ - - - - - - @@ -500,6 +494,5 @@ CA - diff --git a/CLAUDE.md b/CLAUDE.md index 99c7a9c..d06ede8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,7 +8,7 @@ Subler is a macOS AppKit application for muxing and tagging MP4/M4V/M4A files: i - App layer (`Classes/`) is pure Swift 5; the app has no storyboards — UI is XIB-based AppKit (`MainMenu.xib` plus per-controller `.xib`/`.strings`). - All container-level demux/mux/encode work lives in the **MP42Foundation** git submodule (Objective-C/Objective-C++), built as a framework. -- Single app target (`Subler`, legacy productName "MP4Sub", bundle id `org.galad.Subler`), deployment target macOS 10.13. Only external dependency is Sparkle (SPM) for auto-updates. +- Single app target (`Subler`, legacy productName "MP4Sub", bundle id `org.galad.Subler`), deployment target `$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)` (upstream was 10.13). No external package dependencies: the fork removed the Sparkle auto-update integration (updater menu item, `SPUStandardUpdaterController` in MainMenu.xib, `SUFeedURL`/`SUPublicEDKey` in Info.plist, the SPM package reference in the pbxproj). ## Build @@ -21,12 +21,12 @@ git submodule update --init --recursive Build with Xcode (Subler scheme) or CLI: ``` -xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build MACOSX_DEPLOYMENT_TARGET=12.0 +xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build ``` -Recent Xcode toolchains refuse the projects' 10.13 deployment target on command-line builds; the `MACOSX_DEPLOYMENT_TARGET=12.0` override is CLI-only — don't change the project settings. +No deployment-target override is needed: the projects moved from upstream's 10.13 to `$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)` (recent toolchains refuse 10.13). -There is **no test target and no CI** — changes are verified by building and running the app manually. The `Utilities/` tools (MP4Dump legacy ObjC debugging tool, ParseFilename Perl script) are not part of the app build. +There is **no test target and no CI** — changes are verified by building and running the app manually. Of the `Utilities/` tools, MP4Dump (legacy ObjC debugging) is not part of the app build, but `ParseFilename/` **is** — it's copied into the app bundle and executed at runtime by `MetadataHelper.parseFilename` via `Process`. ## Architecture @@ -60,6 +60,6 @@ Chapter elements are their own trap set (all verified empirically against mkvmer ## Cross-cutting concerns -- **Sandbox vs non-sandbox builds**: `#if SB_SANDBOX` guards App Store code paths (security-scoped bookmarks via `MP42SecurityAccessToken`); the default build is the non-sandboxed Sparkle-updatable variant (`Subler.entitlements` exist for the sandboxed config). +- **Sandbox vs non-sandbox builds**: `#if SB_SANDBOX` guards App Store code paths (security-scoped bookmarks via `MP42SecurityAccessToken`); the default build is the non-sandboxed variant (`Subler.entitlements` exist for the sandboxed config). - **Localization**: 183 `.strings` files live in per-locale `.lproj` directories scattered next to the code/XIBs they localize (repo root, `Classes/`, `Classes/PropertyView/`), not one central file. Locales: Base (English), it, fr, es-419, pt-BR, zh-CN, zh-Hans. When adding a UI string, find the sibling `.strings` used by that XIB/view. - **Static data**: `Resources/*.json` — `Alpha2.json` (ISO language codes, used by `LanguageTransformer`), `iTunesStores.json`, `Storefronts.json`, `Ratings.json`. diff --git a/Info.plist b/Info.plist index 14ba395..fea5f92 100644 --- a/Info.plist +++ b/Info.plist @@ -171,12 +171,6 @@ NSApplication OSAScriptingDefinition Subler.sdef - SUAllowsAutomaticUpdates - - SUFeedURL - https://subler.org/appcast/appcast.xml - SUPublicEDKey - 9M0JrgMq+5MrpLqTu7lT+ffThP8dRp78OQNTklwK/WE= NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac UTImportedTypeDeclarations diff --git a/MP42Foundation b/MP42Foundation index 79c251c..a287ea6 160000 --- a/MP42Foundation +++ b/MP42Foundation @@ -1 +1 @@ -Subproject commit 79c251c6dcd1f49f5d35563162d86f48d30707ae +Subproject commit a287ea6404a8c5cc2c73b654338a0e711628641a diff --git a/README.md b/README.md index 7ea0764..967871f 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ in place instead of being converted to MP4: direct TMDb lookup (with title-search fallback) in the metadata search sheet, in queue jobs, and in the AppleScript metadata fetch command. +**No auto-updates** — the upstream Sparkle integration is removed (updater menu item, appcast keys, SPM +package): a fork build pointed at subler.org's appcast would offer upstream builds signed with someone +else's key. The fork version is `1.9.5mkv`, and the app has no third-party package dependencies. + ## Build and run Everything the app builds from lives on this server: the `MP42Foundation` submodule, and inside it a @@ -64,15 +68,15 @@ git pull --rebase git submodule update --init --recursive ``` -The only dependency not hosted here is Sparkle (auto-updates), which Xcode resolves from its upstream -via Swift Package Manager on first build. +There are no other dependencies — no Swift packages are fetched; everything above is the full build +input. Open `Subler.xcodeproj` in Xcode, select the *Subler* scheme (`Product` → `Scheme` → `Subler`) and press -Run. Command-line builds need a deployment-target override on recent toolchains, which refuse the -projects' 10.13 target: +Run. Command-line builds work as-is (the projects target the toolchain-recommended deployment target, +unlike upstream's 10.13, which recent toolchains refuse): ``` -xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build MACOSX_DEPLOYMENT_TARGET=12.0 +xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build ``` There is no test target; changes are verified by building and running the app. diff --git a/Subler.xcodeproj/project.pbxproj b/Subler.xcodeproj/project.pbxproj index 67cada4..fe49181 100644 --- a/Subler.xcodeproj/project.pbxproj +++ b/Subler.xcodeproj/project.pbxproj @@ -46,7 +46,6 @@ A93105391F9758EC00605146 /* FileImportController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A93105351F9758EC00605146 /* FileImportController.xib */; }; A932C9F3205C268A004E52FE /* QueueScriptCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = A932C9F2205C268A004E52FE /* QueueScriptCommand.swift */; }; A9395E351F8B9ACA004C402B /* MP42FileAdditions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9395E341F8B9ACA004C402B /* MP42FileAdditions.swift */; }; - A9405AF2275E282500776561 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = A9405AF1275E282500776561 /* Sparkle */; }; A9433A8D1F2F5C3600BB38CA /* ChapterResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9433A8C1F2F5C3600BB38CA /* ChapterResult.swift */; }; A9433A911F2F5D8A00BB38CA /* ChapterDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9433A901F2F5D8A00BB38CA /* ChapterDB.swift */; }; A944E5921F498FC4002E43F6 /* PresetPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A944E5911F498FC4002E43F6 /* PresetPrefsViewController.swift */; }; @@ -523,7 +522,6 @@ 8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */, A9F7F8E01837C44B0036AE7E /* IOKit.framework in Frameworks */, A925AA8518378D8A00BE84D4 /* MP42Foundation.framework in Frameworks */, - A9405AF2275E282500776561 /* Sparkle in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -815,9 +813,6 @@ A925AA8718378DC400BE84D4 /* PBXTargetDependency */, ); name = Subler; - packageProductDependencies = ( - A9405AF1275E282500776561 /* Sparkle */, - ); productInstallPath = "$(HOME)/Applications"; productName = MP4Sub; productReference = 8D15AC370486D014006FF6A4 /* Subler.app */; @@ -830,7 +825,7 @@ isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = YES; - LastUpgradeCheck = 2700; + LastUpgradeCheck = 2720; TargetAttributes = { 8D15AC270486D014006FF6A4 = { LastSwiftMigration = 1020; @@ -861,9 +856,6 @@ "zh-CN", ); mainGroup = 2A37F4AAFDCFA73011CA2CEA /* MP4Sub */; - packageReferences = ( - A9405AF0275E282500776561 /* XCRemoteSwiftPackageReference "Sparkle" */, - ); projectDirPath = ""; projectReferences = ( { @@ -1537,7 +1529,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1.9.5; + CURRENT_PROJECT_VERSION = 1.9.5mkv; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = ""; @@ -1557,7 +1549,8 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.9.5; + MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; + MARKETING_VERSION = 1.9.5mkv; OTHER_CFLAGS = ""; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_SWIFT_FLAGS = ""; @@ -1583,7 +1576,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1.9.5; + CURRENT_PROJECT_VERSION = 1.9.5mkv; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = ""; @@ -1602,7 +1595,8 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.9.5; + MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; + MARKETING_VERSION = 1.9.5mkv; OTHER_CFLAGS = ""; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_SWIFT_FLAGS = ""; @@ -1693,11 +1687,12 @@ GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ""; LIBRARY_SEARCH_PATHS = ""; - MACOSX_DEPLOYMENT_TARGET = 10.13; + MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "c11 gnu++14"; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ""; RUN_CLANG_STATIC_ANALYZER = NO; + STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_STRICT_CONCURRENCY = targeted; SWIFT_VERSION = 5.0; }; @@ -1750,6 +1745,7 @@ CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; DEFINES_MODULE = YES; ENABLE_MODULE_VERIFIER = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -1779,10 +1775,12 @@ GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ""; LIBRARY_SEARCH_PATHS = ""; - MACOSX_DEPLOYMENT_TARGET = 10.13; + MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "c11 gnu++14"; + ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ""; RUN_CLANG_STATIC_ANALYZER = NO; + STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_STRICT_CONCURRENCY = targeted; @@ -1812,25 +1810,6 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - A9405AF0275E282500776561 /* XCRemoteSwiftPackageReference "Sparkle" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/sparkle-project/Sparkle"; - requirement = { - kind = exactVersion; - version = 2.9.6; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - -/* Begin XCSwiftPackageProductDependency section */ - A9405AF1275E282500776561 /* Sparkle */ = { - isa = XCSwiftPackageProductDependency; - package = A9405AF0275E282500776561 /* XCRemoteSwiftPackageReference "Sparkle" */; - productName = Sparkle; - }; -/* End XCSwiftPackageProductDependency section */ }; rootObject = 2A37F4A9FDCFA73011CA2CEA /* Project object */; } diff --git a/es-419.lproj/MainMenu.strings b/es-419.lproj/MainMenu.strings index 6eefff9..bba3a6a 100644 --- a/es-419.lproj/MainMenu.strings +++ b/es-419.lproj/MainMenu.strings @@ -193,8 +193,6 @@ /* Class = "NSMenuItem"; title = "Optimize"; ObjectID = "451"; */ "451.title" = "Optimizar"; -/* Class = "NSMenuItem"; title = "Check for Updates…"; ObjectID = "529"; */ -"529.title" = "Buscar actualizaciones…"; /* Class = "NSMenuItem"; title = "Import"; ObjectID = "544"; */ "544.title" = "Importar"; diff --git a/fr.lproj/MainMenu.strings b/fr.lproj/MainMenu.strings index d7e7dcd..2f165f2 100644 --- a/fr.lproj/MainMenu.strings +++ b/fr.lproj/MainMenu.strings @@ -193,8 +193,6 @@ /* Class = "NSMenuItem"; title = "Optimize"; ObjectID = "451"; */ "451.title" = "Optimiser"; -/* Class = "NSMenuItem"; title = "Check for Updates…"; ObjectID = "529"; */ -"529.title" = "Vérifier les mises à jour ..."; /* Class = "NSMenuItem"; title = "Import"; ObjectID = "544"; */ "544.title" = "Importer"; diff --git a/it.lproj/MainMenu.strings b/it.lproj/MainMenu.strings index 7c4e783..6d1e980 100644 --- a/it.lproj/MainMenu.strings +++ b/it.lproj/MainMenu.strings @@ -193,8 +193,6 @@ /* Class = "NSMenuItem"; title = "Optimize"; ObjectID = "451"; */ "451.title" = "Ottimizza"; -/* Class = "NSMenuItem"; title = "Check for Updates…"; ObjectID = "529"; */ -"529.title" = "Ricerca aggiornamenti…"; /* Class = "NSMenuItem"; title = "Import"; ObjectID = "544"; */ "544.title" = "Importa"; diff --git a/pt-BR.lproj/MainMenu.strings b/pt-BR.lproj/MainMenu.strings index 0fe8d50..fd0269e 100644 --- a/pt-BR.lproj/MainMenu.strings +++ b/pt-BR.lproj/MainMenu.strings @@ -193,8 +193,6 @@ /* Class = "NSMenuItem"; title = "Optimize"; ObjectID = "451"; */ "451.title" = "Otimizar"; -/* Class = "NSMenuItem"; title = "Check for Updates…"; ObjectID = "529"; */ -"529.title" = "Buscar Atualizações…"; /* Class = "NSMenuItem"; title = "Import"; ObjectID = "544"; */ "544.title" = "Importar"; diff --git a/zh-CN.lproj/MainMenu.strings b/zh-CN.lproj/MainMenu.strings index 1d3ad52..3805a5c 100644 --- a/zh-CN.lproj/MainMenu.strings +++ b/zh-CN.lproj/MainMenu.strings @@ -193,8 +193,6 @@ /* Class = "NSMenuItem"; title = "Optimize"; ObjectID = "451"; */ "451.title" = "优化"; -/* Class = "NSMenuItem"; title = "Check for Updates…"; ObjectID = "529"; */ -"529.title" = "检查更新…"; /* Class = "NSMenuItem"; title = "Import"; ObjectID = "544"; */ "544.title" = "导入"; diff --git a/zh-Hans.lproj/MainMenu.strings b/zh-Hans.lproj/MainMenu.strings index fb0ae09..bc9d790 100644 --- a/zh-Hans.lproj/MainMenu.strings +++ b/zh-Hans.lproj/MainMenu.strings @@ -199,8 +199,6 @@ /* Class = "NSMenuItem"; title = "Optimize"; ObjectID = "451"; */ "451.title" = "优化"; -/* Class = "NSMenuItem"; title = "Check for Updates…"; ObjectID = "529"; */ -"529.title" = "检查更新…"; /* Class = "NSMenuItem"; title = "Import"; ObjectID = "544"; */ "544.title" = "导入";