Skip to content

Commit

Permalink
Add cabextract to Winetricks PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Jan 17, 2024
1 parent aadc670 commit 8ddf39b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Whisky/Utils/Winetricks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ class Winetricks {
.appending(path: "winetricks")

static func runCommand(command: String, bottle: Bottle) async {
guard let cabextractURL = Bundle.main.url(forResource: "cabextract", withExtension: nil) else { return }
// swiftlint:disable:next line_length
let winetricksCmd = #"PATH=\"\#(GPTKInstaller.binFolder.path):$PATH\" WINE=wine64 WINEPREFIX=\"\#(bottle.url.path)\" \"\#(winetricksURL.path(percentEncoded: false))\" \#(command)"#
let winetricksCmd = #"PATH=\"\#(GPTKInstaller.binFolder.path):\#(cabextractURL.path(percentEncoded: false)):$PATH\" WINE=wine64 WINEPREFIX=\"\#(bottle.url.path)\" \"\#(winetricksURL.path(percentEncoded: false))\" \#(command)"#

let script = """
tell application "Terminal"
Expand Down

0 comments on commit 8ddf39b

Please sign in to comment.