mirror of
https://github.com/relativemodder/aegnux.git
synced 2025-12-14 07:29:39 +05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb096c5197 | ||
|
|
00a0df962d | ||
|
|
41577749e9 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -12,4 +12,5 @@ bin/*
|
||||
|
||||
assets/wine
|
||||
assets/vcr.zip
|
||||
assets/msxml3.zip
|
||||
assets/msxml3.zip
|
||||
assets/gdiplus.dll
|
||||
22
prepare.sh
22
prepare.sh
@@ -34,25 +34,23 @@ rm wine-10.17-amd64-wow64.tar.xz
|
||||
|
||||
# Download Visual C++ Redistributable Runtimes
|
||||
echo Downloading Visual C++ Redistributable Runtimes...
|
||||
curl -LO https://uk1-dl.techpowerup.com/files/qpMrHvhJCaISg-CxO9bnTg/1761969558/Visual-C-Runtimes-All-in-One-Jul-2025.zip
|
||||
VCR_FILE="Visual-C-Runtimes-All-in-One-Jul-2025.zip"
|
||||
|
||||
if head -c 512 "$VCR_FILE" | grep -q -i -E "(<!DOCTYPE|<html>|<?xml)"; then
|
||||
echo "Error: Downloaded file appears to be an HTML or XML page (possible error/redirect page)."
|
||||
rm "$VCR_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv "$VCR_FILE" ./assets/vcr.zip
|
||||
curl -LO https://github.com/relativemodder/aegnux/releases/download/vcrbin/vcr.zip
|
||||
mv ./vcr.zip ./assets/vcr.zip
|
||||
|
||||
|
||||
# Download msxml3.zip bundle
|
||||
echo Downloading msxml3 dlls...
|
||||
curl -LO https://github.com/cutefishaep/AeNux/raw/refs/heads/main/asset/System32/msxml3.dll
|
||||
curl -LO https://github.com/cutefishaep/AeNux/raw/refs/heads/main/asset/System32/msxml3r.dll
|
||||
curl -LO https://github.com/relativemodder/aegnux/releases/download/vcrbin/msxml3.dll
|
||||
curl -LO https://github.com/relativemodder/aegnux/releases/download/vcrbin/msxml3r.dll
|
||||
zip ./assets/msxml3.zip msxml3.dll msxml3r.dll
|
||||
rm msxml3.dll
|
||||
rm msxml3r.dll
|
||||
|
||||
|
||||
# Download gdiplus.dll
|
||||
echo Downloading gdiplus.dll...
|
||||
curl -LO https://github.com/relativemodder/aegnux/releases/download/vcrbin/gdiplus.dll
|
||||
mv gdiplus.dll ./assets/
|
||||
|
||||
echo --------------------------------------------
|
||||
echo Done!
|
||||
@@ -11,6 +11,7 @@ STYLES_PATH = BASE_DIR + '/styles'
|
||||
WINE_RUNNER_DIR = BASE_DIR + '/assets/wine'
|
||||
WINETRICKS_BIN = BASE_DIR + '/bin/winetricks'
|
||||
CABEXTRACT_BIN = BASE_DIR + '/bin/cabextract'
|
||||
GDIPLUS_DLL = BASE_DIR + '/assets/gdiplus.dll'
|
||||
|
||||
VCR_ZIP = BASE_DIR + '/assets/vcr.zip'
|
||||
MSXML_ZIP = BASE_DIR + '/assets/msxml3.zip'
|
||||
|
||||
@@ -5,7 +5,7 @@ from src.config import (
|
||||
AE_DOWNLOAD_URL, AE_FILENAME,
|
||||
WINE_RUNNER_DIR, WINETRICKS_BIN,
|
||||
CABEXTRACT_BIN, WINE_STYLE_REG,
|
||||
VCR_ZIP, MSXML_ZIP
|
||||
VCR_ZIP, MSXML_ZIP, GDIPLUS_DLL
|
||||
)
|
||||
from src.processthread import ProcessThread
|
||||
from src.utils import (
|
||||
@@ -107,7 +107,7 @@ class InstallationThread(ProcessThread):
|
||||
|
||||
self.progress_signal.emit(60)
|
||||
|
||||
tweaks = ['dxvk', 'corefonts', 'gdiplus', 'fontsmooth=rgb']
|
||||
tweaks = ['dxvk', 'corefonts', 'fontsmooth=rgb']
|
||||
for tweak in tweaks:
|
||||
self.log_signal.emit(f'[DEBUG] Installing {tweak} with winetricks')
|
||||
self.run_command(['winetricks', '-q', tweak], in_prefix=True)
|
||||
@@ -142,6 +142,16 @@ class InstallationThread(ProcessThread):
|
||||
in_prefix=True
|
||||
)
|
||||
|
||||
self.log_signal.emit(f'[DEBUG] Overriding gdiplus DLL...')
|
||||
shutil.copy(GDIPLUS_DLL, system32_dir.joinpath('gdiplus.dll'))
|
||||
|
||||
self.run_command(
|
||||
['wine', 'reg', 'add',
|
||||
'HKCU\\Software\\Wine\\DllOverrides', '/v',
|
||||
'gdiplus', '/d', 'native,builtin', '/f'],
|
||||
in_prefix=True
|
||||
)
|
||||
|
||||
if is_nvidia_present():
|
||||
self.log_signal.emit("[INFO] Starting NVIDIA libs installation...")
|
||||
self.install_nvidia_libs()
|
||||
|
||||
Reference in New Issue
Block a user