mirror of
https://github.com/nimbold/Firelink.git
synced 2026-07-26 12:08:27 +00:00
efb4446739
Includes the executable's modification date in the version hash to ensure ad-hoc and local recompilations correctly trigger the keychain primer UI, preventing unexpected system prompts on boot.
8 lines
331 B
Swift
8 lines
331 B
Swift
import Foundation
|
|
print(Bundle.main.infoDictionary ?? "No Info.plist")
|
|
let execPath = Bundle.main.executablePath
|
|
print("Exec path: \(execPath ?? "nil")")
|
|
if let path = execPath, let attr = try? FileManager.default.attributesOfItem(atPath: path), let modDate = attr[.modificationDate] as? Date {
|
|
print("Mod date: \(modDate)")
|
|
}
|