diff --git a/Casks/kegworks.rb b/Casks/kegworks.rb new file mode 100644 index 0000000..30d473a --- /dev/null +++ b/Casks/kegworks.rb @@ -0,0 +1,29 @@ +cask "kegworks" 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", target: "Kegworks Winery.app" + + 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.winery", + "~/Library/Caches/com.unofficial.wineskin", + ] + + caveats do + requires_rosetta + end +end diff --git a/Casks/wineskin-devel.rb b/Casks/wineskin-devel.rb deleted file mode 100644 index 70fb500..0000000 --- a/Casks/wineskin-devel.rb +++ /dev/null @@ -1,34 +0,0 @@ -cask "wineskin-devel" do - version "2.0" - sha256 "a065827ab7d30f84a631d0c26431a3c6f2576471f84501daf6455334c5eb7c79" - - url "https://github.com/The-Wineskin-Project/Winery/releases/download/#{version}/wineskin-winery-v#{version}.tar.xz" - name "Wineskin Winery" - desc "Porting tool, to make Windows programs/games into native apps" - homepage "https://github.com/The-Wineskin-Project/Winery/" - - conflicts_with cask: %w[ - wineskin - ] - depends_on macos: ">= :catalina" - - app "Wineskin 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}/Wineskin Winery.app" - system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Wineskin Winery.app" - system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Wineskin"], sudo: false - end - - zap trash: [ - "~/Library/Application Support/Wineskin", - "~/Library/Caches/com.unofficial.wineskin", - "~/Library/Caches/com.unofficial.wineskinwinery", - ] - - caveats do - requires_rosetta - end -end diff --git a/Casks/wineskin.rb b/Casks/wineskin.rb deleted file mode 100644 index 751ebaa..0000000 --- a/Casks/wineskin.rb +++ /dev/null @@ -1,34 +0,0 @@ -cask "wineskin" do - version "2.0.2" - sha256 "51e088f5c22deadd60069656e91fd98c4a5855492bca1038b5753bd251df9981" - - url "https://github.com/The-Wineskin-Project/Winery/releases/download/#{version}/wineskin-winery-v#{version}.tar.xz" - name "Wineskin Winery" - desc "Porting tool, to make Windows programs/games into native apps" - homepage "https://github.com/The-Wineskin-Project/Winery/" - - conflicts_with cask: %w[ - wineskin-devel - ] - depends_on macos: ">= :catalina" - - app "Wineskin 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}/Wineskin Winery.app" - system "/usr/bin/codesign", "--force", "--deep", "-s", "-", "#{appdir}/Wineskin Winery.app" - system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Wineskin"], sudo: false - end - - zap trash: [ - "~/Library/Application Support/Wineskin", - "~/Library/Caches/com.unofficial.wineskin", - "~/Library/Caches/com.unofficial.wineskinwinery", - ] - - caveats do - requires_rosetta - end -end diff --git a/cask_renames.json b/cask_renames.json index ca011e6..38ac921 100644 --- a/cask_renames.json +++ b/cask_renames.json @@ -1,4 +1,5 @@ { "gstreamer-framework": "gstreamer-runtime", - "unofficial-wineskin": "wineskin" + "unofficial-wineskin": "wineskin", + "wineskin": "kegworks" }