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>
18 lines
296 B
Swift
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
|
|
}
|
|
}
|