Ferrite-backup/Ferrite/Extensions/Bundle.swift
kingbri 55226e5628 Build: Add scripts for commit and nightly information
This automatically embeds the commit hash and if the build is an
actions nightly or not which will help with debugging crashes.

Signed-off-by: kingbri <bdashore3@proton.me>
2022-12-06 12:37:15 -05:00

18 lines
296 B
Swift

//
// Bundle.swift
// Ferrite
//
// Created by Brian Dashore on 12/6/22.
//
import Foundation
extension Bundle {
var commitHash: String? {
infoDictionary?["GitCommitHash"] as? String
}
var isNightly: Bool {
infoDictionary?["IsNightly"] as? Bool ?? false
}
}