-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild.bat
More file actions
77 lines (69 loc) · 2.53 KB
/
Copy pathbuild.bat
File metadata and controls
77 lines (69 loc) · 2.53 KB
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
76
77
@echo off
echo ============================================
echo wow_optimize build script
echo Builds: wow_optimize.dll + version.dll
echo Requires: Visual Studio 2026 + CMake
echo ============================================
echo.
where cmake >nul 2>nul
if errorlevel 1 (
echo ERROR: CMake not found.
echo Install Visual Studio 2026 with "Desktop development with C++"
pause
exit /b 1
)
if not exist build mkdir build
cd build
echo [1/3] Configuring (32-bit)...
cmake -G "Visual Studio 18 2026" -A Win32 .. 2>&1
if errorlevel 1 (
rd /s /q CMakeFiles
del /q CMakeCache.txt
echo Trying Visual Studio 2026...
cmake -G "Visual Studio 18 2026" -A Win32 .. 2>&1
if errorlevel 1 (
echo ERROR: CMake configure failed.
cd ..
exit /b 1
)
)
echo.
echo [2/3] Building Release...
cmake --build . --config Release 2>&1
if errorlevel 1 (
echo ERROR: Build failed.
cd ..
exit /b 1
)
echo.
echo [3/3] Done!
echo.
echo Output files:
echo build\Release\wow_optimize.dll - optimization DLL
echo build\Release\version.dll - auto-loader proxy
echo.
echo OPTION A (recommended):
echo Copy BOTH files to your WoW folder. No injector needed.
echo.
echo OPTION B (manual):
echo Copy wow_optimize.dll + use inject.bat or any DLL injector.
echo.
cd ..
echo.
echo [4/4] Compiling Launcher...
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Core.dll /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Windows.Forms.dll /resource:src\launcher\wotlk_background.jpg,wotlk_background.jpg /target:winexe /out:build\Release\wow_optimize_launcher.exe src\launcher\Launcher.cs
if errorlevel 1 (
echo ERROR: Launcher compilation failed.
exit /b 1
)
copy /y src\launcher\wotlk_background.jpg build\Release\wotlk_background.jpg >nul
echo.
echo Output files:
echo build\Release\wow_optimize.dll - optimization DLL
echo build\Release\version.dll - auto-loader proxy
echo build\Release\wow_optimize_launcher.exe - modular launcher dashboard
echo build\Release\wotlk_background.jpg - launcher background asset
echo.
echo OPTION A (recommended):
echo Copy ALL files to your WoW folder. Run wow_optimize_launcher.exe.
echo.