Files
Firelink/test.swift
T
NimBold efb4446739 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.
2026-06-10 12:27:48 +03:30

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)")
}