Run Wine from Swift
let folder: URL = "/path/to/wine/bin"
let bottle: URL = "/path/to/bottle"
let wine = Wine(folder: folder, bottle: bottle)
Query the registry for an entry
try await wine.registry.query(
keyPath: String,
name: String,
type: RegistryType
)
Add an entry to the registry
try await wine.registry.add(
keyPath: String,
name: String,
value: String,
type: RegistryType
)
Delete an entry from the registry
try await wine.registry.delete(
keyPath: String,
name: String
)
Open the Registry Editor
try await wine.commands.registryEditor()
Open the GUI configuration tool for Wine
try await wine.commands.configurationGUI()
Open the Wine Control Panel
try await wine.commands.controlPanel()
Open the Wine Task Manager
try await wine.commands.taskManager()
Parse windows files
For more information see PE Format on Microsoft Learn.
let url: URL = "/path/to/peFile"
let peFile = PortableExecutable(url: url)
For more information see Shell Link on Microsoft Learn.
let url: URL = "/path/to/shellLink"
let shellLink = ShellLink(url: url)
See LICENSE