WineKit

main

🍷 Run Wine from Swift
divadretlaw/WineKit

WineKit

Run Wine from Swift

Usage

Wine

let folder: URL = "/path/to/wine/bin"
let bottle: URL = "/path/to/bottle"
let wine = Wine(folder: folder, bottle: bottle)

Registry

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
)
Registry

Open the Registry Editor

try await wine.commands.registryEditor()

Commands

Open the GUI configuration tool for Wine

try await wine.commands.configurationGUI()

Open the Wine Control Panel

try await wine.commands.controlPanel()
Task Manager

Open the Wine Task Manager

try await wine.commands.taskManager()

WindowsFileKit

Parse windows files

Portable Executable

For more information see PE Format on Microsoft Learn.

let url: URL = "/path/to/peFile"
let peFile = PortableExecutable(url: url)

Shell Link

For more information see Shell Link on Microsoft Learn.

let url: URL = "/path/to/shellLink"
let shellLink = ShellLink(url: url)

License

See LICENSE

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Nov 19 2024 02:45:35 GMT-1000 (Hawaii-Aleutian Standard Time)