Skip to content

Commit

Permalink
Report WhiskyWine version in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Sep 24, 2024
1 parent 4bd3b5f commit b2ac68c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import Foundation
import os.log
import SemanticVersion

extension FileHandle {
func extract<T>(_ type: T.Type, offset: UInt64 = 0) -> T? {
Expand Down Expand Up @@ -73,7 +74,9 @@ extension FileHandle {
header += "Bottle Name: \(bottle.settings.name)\n"
header += "Bottle URL: \(bottle.url.path)\n\n"

header += "Wine Version: \(bottle.settings.wineVersion)\n"
if let version = WhiskyWineInstaller.whiskyWineVersion() {
header += "WhiskyWine Version: \(version.major).\(version.minor).\(version.patch)\n"
}
header += "Windows Version: \(bottle.settings.windowsVersion)\n"
header += "Enhanced Sync: \(bottle.settings.enhancedSync)\n\n"

Expand Down

0 comments on commit b2ac68c

Please sign in to comment.