Skip to content

Commit

Permalink
Create winery.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx committed Oct 4, 2024
1 parent d2ad94a commit f56727f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Casks/winery.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cask "winery" do
version "2.0.3"
sha256 "bc30236554c7333f35fbff78b7eb849854b5c9521a917007cc9b4944421c5b6a"

url "https://github.com/Kegworks-App/Winery/releases/download/v#{version}/winery-v#{version}.tar.xz"
name "Winery"
desc "Porting tool, to make Windows programs/games into native apps"
homepage "https://github.com/Kegworks-App"

depends_on macos: ">= :catalina"

app "Winery.app"

# Workaround issue until it's fixed in Winery
# https://github.com/Gcenx/WineskinServer/issues/96
postflight do
system "/usr/bin/xattr", "-drs", "com.apple.quarantine", "#{appdir}/Winery.app"
system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Winery.app"
system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Kegworks"], sudo: false
end

zap trash: [
"~/Library/Application Support/Kegworks",
"~/Library/Caches/com.unofficial.wineskin",
"~/Library/Caches/com.unofficial.winery",
]

caveats do
requires_rosetta
end
end

0 comments on commit f56727f

Please sign in to comment.