ref: rename PreviewGenerator

This commit is contained in:
relikd
2025-11-02 16:10:08 +01:00
parent f49e184dbb
commit 802daebe56
9 changed files with 36 additions and 36 deletions

17
src/Preview+Footer.swift Normal file
View File

@@ -0,0 +1,17 @@
import Foundation
extension PreviewGenerator {
/// Process meta information about the plugin. Like version and debug flag.
mutating func procFooterInfo() {
self.apply([
"SrcAppName": "QLAppBundle",
"SrcLinkUrl": "https://github.com/relikd/QLAppBundle",
"SrcLinkName": "relikd/QLAppBundle",
"BundleShortVersionString": Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "",
"BundleVersion": Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "",
])
#if DEBUG
self.data["SrcAppName"]! += " (debug)"
#endif
}
}