Skip to content

Commit 04108e3

Browse files
Package Wine Mono and Gecko Directly on Wine Rat Package Instead of Cache Dir
1 parent af4bed0 commit 04108e3

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

packages/wine/post-install.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Get Wine Gecko and Mono Versions
2+
MONO_VERSION=$(grep -R "#define MONO_VERSION" "../dlls/appwiz.cpl/addons.c" | cut -d " " -f 3)
3+
MONO_VERSION=${MONO_VERSION:1:-1}
4+
5+
GECKO_VERSION=$(grep -R "#define GECKO_VERSION" "../dlls/appwiz.cpl/addons.c" | cut -d " " -f 3)
6+
GECKO_VERSION=${GECKO_VERSION:1:-1}
7+
8+
# Download Wine Gecko and Mono and Package Together with Wine
9+
curl -LO# "https://dl.winehq.org/wine/wine-mono/$MONO_VERSION/wine-mono-$MONO_VERSION-x86.tar.xz"
10+
curl -LO# "https://dl.winehq.org/wine/wine-gecko/$GECKO_VERSION/wine-gecko-$GECKO_VERSION-x86_64.tar.xz"
11+
curl -LO# "https://dl.winehq.org/wine/wine-gecko/$GECKO_VERSION/wine-gecko-$GECKO_VERSION-x86.tar.xz"
12+
13+
mkdir -p ../destdir-pkg/$PREFIX
14+
mkdir -p ../destdir-pkg/$PREFIX/../wine/share/{mono,gecko}
15+
16+
tar -xf "wine-mono-$MONO_VERSION-x86.tar.xz" -C ../destdir-pkg/$PREFIX/../wine/share/wine/mono
17+
tar -xf "wine-gecko-$GECKO_VERSION-x86.tar.xz" -C ../destdir-pkg/$PREFIX/../wine/share/wine/gecko
18+
tar -xf "wine-gecko-$GECKO_VERSION-x86_64.tar.xz" -C ../destdir-pkg/$PREFIX/../wine/share/wine/gecko
19+
20+
rm -rf ../destdir-pkg/$PREFIX
21+
22+
rm -f "wine-mono-$MONO_VERSION-x86.tar.xz" "wine-gecko-$GECKO_VERSION-x86.tar.xz" "wine-gecko-$GECKO_VERSION-x86_64.tar.xz"

tools/download-external-dependencies.sh

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -164,39 +164,13 @@ vkd3dDownload() {
164164
fi
165165
}
166166

167-
wineMonoGeckoDownload() {
168-
mkdir -p "$WORKDIR/home/.cache/wine"
169-
170-
cd "$WORKDIR/home/.cache/wine"
171-
172-
if [ -e "wine-mono-$1-x86.msi" ]; then
173-
echo "Wine Mono $1 already downloaded"
174-
else
175-
echo "Downloading Wine Mono $1..."
176-
177-
curl -# -L -O "https://dl.winehq.org/wine/wine-mono/$1/wine-mono-$1-x86.msi"
178-
fi
179-
180-
if [ -e "wine-gecko-$2-x86_64.msi" ]; then
181-
echo "Wine Gecko $2 already downloaded"
182-
else
183-
echo "Downloading Wine Gecko $2..."
184-
185-
curl -# -L -O "https://dl.winehq.org/wine/wine-gecko/$2/wine-gecko-$2-x86_64.msi"
186-
fi
187-
188-
cd "$WORKDIR"
189-
}
190-
191167
export INIT_DIR="$PWD"
192168
export WORKDIR="$PWD/wine-utils/files"
193169

194170
mkdir -p "$WORKDIR"
195171

196172
cd "$WORKDIR"
197173

198-
wineMonoGeckoDownload 9.4.0 2.47.4
199-
200174
mkdir -p "home" "wine-utils"
201175

202176
cd "wine-utils"

0 commit comments

Comments
 (0)