-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
wine@staging.rb
75 lines (67 loc) 路 2.68 KB
/
wine@staging.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cask "wine@staging" do
version "9.8"
sha256 "18ee05fc12d12483fb957ab9a1b8c6aeb7077f212d15644bb7c0f448d8c2698e"
# Current winehq packages are deprecated and these are packages from
# the new maintainers that will eventually be pushed to Winehq.
# See https://www.winehq.org/pipermail/wine-devel/2021-July/191504.html
url "https://github.com/Gcenx/macOS_Wine_builds/releases/download/#{version.major_minor}/wine-staging-#{version}-osx64.tar.xz",
verified: "github.com/Gcenx/macOS_Wine_builds/"
name "WineHQ-staging"
desc "Compatibility layer to run Windows applications"
homepage "https://wiki.winehq.org/MacOS"
livecheck do
url :url
strategy :github_latest
regex(/^v?((?:\d+(?:\.\d+)+)(?:-RC\d)?)$/i)
end
conflicts_with cask: [
"wine-stable",
"wine@devel",
]
depends_on cask: "gstreamer-runtime"
depends_on macos: ">= :catalina"
app "Wine Staging.app"
dir_path = "#{appdir}/Wine Staging.app/Contents/Resources"
binary "#{dir_path}/start/bin/appdb"
binary "#{dir_path}/start/bin/winehelp"
binary "#{dir_path}/wine/bin/msidb"
binary "#{dir_path}/wine/bin/msiexec"
binary "#{dir_path}/wine/bin/notepad"
binary "#{dir_path}/wine/bin/regedit"
binary "#{dir_path}/wine/bin/regsvr32"
binary "#{dir_path}/wine/bin/wine"
binary "#{dir_path}/wine/bin/wine-preloader"
binary "#{dir_path}/wine/bin/wine64"
binary "#{dir_path}/wine/bin/wine64-preloader"
binary "#{dir_path}/wine/bin/wineboot"
binary "#{dir_path}/wine/bin/winecfg"
binary "#{dir_path}/wine/bin/wineconsole"
binary "#{dir_path}/wine/bin/winedbg"
binary "#{dir_path}/wine/bin/winefile"
binary "#{dir_path}/wine/bin/winemine"
binary "#{dir_path}/wine/bin/winepath"
binary "#{dir_path}/wine/bin/wineserver"
zap trash: [
"~/.local/share/applications/wine*",
"~/.local/share/icons/hicolor/**/application-x-wine*",
"~/.local/share/mime/application/x-wine*",
"~/.local/share/mime/packages/x-wine*",
"~/.wine",
"~/.wine32",
"~/Library/Saved Application State/org.winehq.wine-staging.wine.savedState",
],
rmdir: [
"~/.local/share/applications",
"~/.local/share/icons",
"~/.local/share/mime",
]
caveats <<~EOS
#{token} supports both 32-bit and 64-bit. It is compatible with an existing
32-bit wine prefix, but it will now default to 64-bit when you create a new
wine prefix. The architecture can be selected using the WINEARCH environment
variable which can be set to either win32 or win64.
To create a new pure 32-bit prefix, you can run:
$ WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
See the Wine FAQ for details: https://wiki.winehq.org/FAQ#Wineprefixes
EOS
end