mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-10 03:27:05 +00:00
fix(security): track executable modification date for primer detection
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.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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)")
|
||||
}
|
||||
Reference in New Issue
Block a user