From cfee394739aaae6963b0794c3ba280f081b83687 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 13 Sep 2023 17:22:44 -0500 Subject: [PATCH] [AltServer] Credits pymobiledevice3 for iOS 17 Developer Disk implementation --- AltServer/AppDelegate.swift | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/AltServer/AppDelegate.swift b/AltServer/AppDelegate.swift index dea230a7..8b3abb6d 100644 --- a/AltServer/AppDelegate.swift +++ b/AltServer/AppDelegate.swift @@ -347,7 +347,21 @@ private extension AppDelegate @IBAction private func showAboutPanel(_ sender: NSMenuItem) { - NSApplication.shared.orderFrontStandardAboutPanel(sender) + let options: [NSApplication.AboutPanelOptionKey: Any] + + if #available(macOS 12, *) + { + var credits = try! AttributedString(markdown: "Thanks to [pymobiledevice3](https://github.com/doronz88/pymobiledevice3) for their work on the iOS 17 Developer Disk format.") + credits.font = .systemFont(ofSize: NSFont.smallSystemFontSize) // YOLO ignore Sendable warning. + + options = [.credits: NSAttributedString(credits)] + } + else + { + options = [:] + } + + NSApplication.shared.orderFrontStandardAboutPanel(options: options) NSRunningApplication.current.activate(options: .activateIgnoringOtherApps) } }