How whisky-app/whisky works
Whisky is a native macOS SwiftUI manager for running Windows apps and games through Wine. The main workflow creates a bottle, configures its Windows environment, discovers or adds programs, and launches them through Wine; bottle settings, pins, and program settings persist locally. Separate capabilities include Winetricks, PE inspection, setup and WhiskyWine installation, and a command-line interface. Relationships are limited to calls or references visible in the excerpts, SOURCE INDEX, or README; some unsampled subsystem details are therefore represented without speculative internal links.
Main entry points: BottleView.swift Bottle dashboard · ContentView.swift Bottle browser · BottleVM.swift Bottle coordinator · Wine.swift Wine operations
Components 22
Whisky app
- Bottle browser
Whisky/Views/ContentView.swift - Create bottle UI
Whisky/Views/Bottle/BottleCreationView.swift - Bottle dashboard
Whisky/Views/Bottle/BottleView.swift - Bottle configuration
Whisky/Views/Bottle/ConfigView.swift - Program browser
Whisky/Views/Programs/ProgramsView.swift - Pinned programs
Whisky/Views/Bottle/Pins/PinView.swift - Winetricks UI
Whisky/Views/Bottle/WinetricksView.swift
Bottle management
- Bottle coordinator
Whisky/View Models/BottleVM.swift - Bottle registry
WhiskyKit/Sources/WhiskyKit/Whisky/BottleData.swift - Bottle model
WhiskyKit/Sources/WhiskyKit/Whisky/Bottle.swift - Bottle settings
WhiskyKit/Sources/WhiskyKit/Whisky/BottleSettings.swift - Program model
WhiskyKit/Sources/WhiskyKit/Whisky/Program.swift - Program settings
WhiskyKit/Sources/WhiskyKit/Whisky/ProgramSettings.swift
Wine runtime
- Winetricks runner
Whisky/Utils/Winetricks.swift - Wine operations
WhiskyKit/Sources/WhiskyKit/Wine/Wine.swift - WhiskyWine runtime
WhiskyKit/Sources/WhiskyKit/WhiskyWine/WhiskyWineInstaller.swift - Wine processes
Setup and inspection
- First-run setup
Whisky/Views/Setup/WelcomeView.swift - PE section parser
WhiskyKit/Sources/WhiskyKit/PE/Section.swift - Command-line interface
WhiskyCmd/Main.swift
Other components
- Mac user
- Version endpoint
Connections 28
- Mac user → Bottle browser: manages bottles
- Bottle browser → Bottle coordinator: loads bottles
Whisky/Views/ContentView.swift - Bottle browser → Create bottle UI: opens creation
Whisky/Views/ContentView.swift - Create bottle UI → Bottle coordinator: requests creation
Whisky/Views/Bottle/BottleCreationView.swift - Bottle coordinator → Bottle model: creates bottle
Whisky/View Models/BottleVM.swift - Bottle coordinator → Wine operations: sets version
Whisky/View Models/BottleVM.swift - Bottle coordinator → Bottle registry: loads paths
Whisky/View Models/BottleVM.swift - Bottle registry → Bottle model: loads bottles
WhiskyKit/Sources/WhiskyKit/Whisky/BottleData.swift - Bottle browser → Bottle dashboard: shows selection
Whisky/Views/ContentView.swift - Bottle dashboard → Bottle configuration: opens settings
Whisky/Views/Bottle/BottleView.swift - Bottle dashboard → Program browser: opens programs
Whisky/Views/Bottle/BottleView.swift - Bottle dashboard → Pinned programs: shows pins
Whisky/Views/Bottle/BottleView.swift - Bottle dashboard → Winetricks UI: opens tools
Whisky/Views/Bottle/BottleView.swift - Bottle dashboard → Wine operations: runs selected app
Whisky/Views/Bottle/BottleView.swift - Bottle configuration → Bottle model: configures
Whisky/Views/Bottle/ConfigView.swift - Bottle configuration → PE section parser: inspects sections
Whisky/Views/Bottle/ConfigView.swift - Program browser → Program model: displays programs
Whisky/Views/Programs/ProgramsView.swift - Program model → Program settings: loads and saves
WhiskyKit/Sources/WhiskyKit/Whisky/Program.swift - Program browser → Wine operations: runs program
Whisky/Views/Programs/ProgramsView.swift - Pinned programs → Program model: displays pinned
Whisky/Views/Bottle/Pins/PinView.swift - Winetricks UI → Winetricks runner: runs verbs
Whisky/Views/Bottle/WinetricksView.swift - Winetricks runner → WhiskyWine runtime: uses bundled tools
Whisky/Utils/Winetricks.swift - Wine operations → Wine processes: launches processes
WhiskyKit/Sources/WhiskyKit/Wine/Wine.swift - First-run setup → WhiskyWine runtime: installs runtime
Whisky/Views/Setup/WelcomeView.swift - Bottle browser → WhiskyWine runtime: checks updates
Whisky/Views/ContentView.swift - WhiskyWine runtime → Version endpoint: fetches version
WhiskyKit/Sources/WhiskyKit/WhiskyWine/WhiskyWineInstaller.swift - Mac user → Command-line interface: runs commands
WhiskyCmd/Main.swift - Command-line interface → Bottle model: creates or runs
WhiskyCmd/Main.swift