Skip to content

Commit

Permalink
Download Wine Mono 8.1.0, Small Change on 'Update Prefix.bat', Check …
Browse files Browse the repository at this point in the history
…If DXVK/WineD3D/VKD3D is downloaded before create it's folder and warn, Small Change on Wine Utils Folder Name
  • Loading branch information
KreitinnSoftware committed Nov 15, 2024
1 parent 32bf856 commit 8d9dcfc
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 32 deletions.
2 changes: 1 addition & 1 deletion create-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export WINE_UTILS_PKG=$(find "$INIT_DIR/Wine-Utils-($GIT_SHORT_SHA)-any.rat")

if [ ! -f "$WINE_UTILS_PKG" ]; then
./download-external-dependencies.sh
./create-rat-pkg.sh "Wine-Utils" "any" "($GIT_SHORT_SHA)" "wine-utils" "$INIT_DIR/rootfs" "$INIT_DIR"
./create-rat-pkg.sh "Wine-Utils" "any" "($GIT_SHORT_SHA)" "wine-utils" "$INIT_DIR/wine-utils" "$INIT_DIR"
fi

ROOTFS_PKGS+=" $WINE_UTILS_PKG"
Expand Down
80 changes: 50 additions & 30 deletions download-external-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ dxvkDownload() {

curl -# -L -O "https://github.com/doitsujin/dxvk/releases/download/v$1/dxvk-$1.tar.gz"

mkdir -p "DXVK-$1"
if [ $? != 0 ]; then
echo "Error on Downloading DXVK-$1-gplasync."
else
mkdir -p "DXVK-$1"

tar -xf "dxvk-$1.tar.gz"
tar -xf "dxvk-$1.tar.gz"

mv "dxvk"*"/x32" "dxvk"*"/x64" "DXVK-$1"
mv "dxvk"*"/x32" "dxvk"*"/x64" "DXVK-$1"

rm -rf "dxvk"*
rm -rf "dxvk"*
fi

cd "$OLDPWD"
fi
Expand All @@ -30,13 +34,17 @@ dxvkAsyncDownload() {

curl -# -L -O "https://github.com/Sporif/dxvk-async/releases/download/$1/dxvk-async-$1.tar.gz"

mkdir -p "DXVK-$1-async"
if [ $? != 0 ]; then
echo "Error on Downloading DXVK-$1-async."
else
mkdir -p "DXVK-$1-async"

tar -xf "dxvk-async-$1.tar.gz"
tar -xf "dxvk-async-$1.tar.gz"

mv "dxvk"*"/x32" "dxvk"*"/x64" "DXVK-$1-async"
mv "dxvk"*"/x32" "dxvk"*"/x64" "DXVK-$1-async"

rm -rf "dxvk"*
rm -rf "dxvk"*
fi

cd "$OLDPWD"
fi
Expand All @@ -52,13 +60,17 @@ dxvkGplAsyncDownload() {

curl -# -L -O "https://gitlab.com/Ph42oN/dxvk-gplasync/-/raw/main/releases/dxvk-gplasync-v$1.tar.gz?ref_type=heads&inline=false"

mkdir -p "DXVK-$1-gplasync"
if [ $? != 0 ]; then
echo "Error on Downloading DXVK-$1-gplasync."
else
mkdir -p "DXVK-$1-gplasync"

tar -xf "dxvk-gplasync-v$1.tar.gz"
tar -xf "dxvk-gplasync-v$1.tar.gz"

mv "dxvk"*"/x32" "dxvk"*"/x64" "DXVK-$1-gplasync"
mv "dxvk"*"/x32" "dxvk"*"/x64" "DXVK-$1-gplasync"

rm -rf "dxvk"*
rm -rf "dxvk"*
fi

cd "$OLDPWD"
fi
Expand All @@ -75,21 +87,25 @@ wined3dDownload() {
curl -# -L -O "https://downloads.fdossena.com/Projects/WineD3D/Builds/WineD3DForWindows_$1.zip"
curl -# -L -O "https://downloads.fdossena.com/Projects/WineD3D/Builds/WineD3DForWindows_$1-x86_64.zip"

mkdir -p "WineD3D-($1)/x64"
mkdir -p "WineD3D-($1)/x32"
if [ $? != 0 ]; then
echo "Error on Downloading WineD3D-($1)."
else
mkdir -p "WineD3D-($1)/x64"
mkdir -p "WineD3D-($1)/x32"

7z x "WineD3D*$1-x86_64.zip" -o"wined3d-x64" -aoa &> /dev/zero
7z x "WineD3D*$1.zip" -o"wined3d-x32" -aoa &> /dev/zero
7z x "WineD3D*$1-x86_64.zip" -o"wined3d-x64" -aoa &> /dev/zero
7z x "WineD3D*$1.zip" -o"wined3d-x32" -aoa &> /dev/zero

for i in $(find "wined3d-x64" -name "*.dll"); do
cp -f "$i" "WineD3D-($1)/x64"
done
for i in $(find "wined3d-x64" -name "*.dll"); do
cp -f "$i" "WineD3D-($1)/x64"
done

for i in $(find "wined3d-x32" -name "*.dll"); do
cp -f "$i" "WineD3D-($1)/x32"
done
for i in $(find "wined3d-x32" -name "*.dll"); do
cp -f "$i" "WineD3D-($1)/x32"
done

rm -rf "wined3d"* *".zip"
rm -rf "wined3d"* *".zip"
fi

cd "$OLDPWD"
fi
Expand All @@ -105,14 +121,18 @@ vkd3dDownload() {

curl -# -L -O "https://github.com/HansKristian-Work/vkd3d-proton/releases/download/v$1/vkd3d-proton-$1.tar.zst"

mkdir -p "VKD3D-$1"
if [ $? != 0 ]; then
echo "Error on Downloading VKD3D-$1."
else
mkdir -p "VKD3D-$1"

tar -xf "vkd3d-proton-$1.tar.zst"
tar -xf "vkd3d-proton-$1.tar.zst"

mv "vkd3d"*"/x64" "VKD3D-$1/"
mv "vkd3d"*"/x86" "VKD3D-$1/x32"
mv "vkd3d"*"/x64" "VKD3D-$1/"
mv "vkd3d"*"/x86" "VKD3D-$1/x32"

rm -rf "vkd3d"*
rm -rf "vkd3d"*
fi

cd "$OLDPWD"
fi
Expand Down Expand Up @@ -143,13 +163,13 @@ wineMonoGeckoDownload() {
}

export INIT_DIR="$PWD"
export WORKDIR="$PWD/rootfs/files"
export WORKDIR="$PWD/wine-utils/files"

mkdir -p "$WORKDIR"

cd "$WORKDIR"

wineMonoGeckoDownload 9.3.0 2.47.4
wineMonoGeckoDownload 8.1.0 2.47.4

mkdir -p "home" "wine-utils"

Expand Down
2 changes: 1 addition & 1 deletion etc/Start Menu/Update Prefix.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

wineboot -u
C:\\windows\\system32\\wineboot -u

reg delete HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\ThemeManager -v DllName /f

0 comments on commit 8d9dcfc

Please sign in to comment.