-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
66 lines (59 loc) · 2.41 KB
/
Copy pathbuild.bat
File metadata and controls
66 lines (59 loc) · 2.41 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
@echo off
setlocal
cd /d "%~dp0"
echo ========================================
echo Night Call Russian - Build
echo ========================================
echo.
REM Parse argument
set BUILD_INSTALLER=0
if /i "%1"=="--installer" set BUILD_INSTALLER=1
if /i "%1"=="-i" set BUILD_INSTALLER=1
REM Build mod DLL
echo Building RussianLocalization.dll...
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" ^
/target:library ^
/out:"%~dp0bin\RussianLocalization.dll" ^
/reference:"%~dp0data\BepInEx\core\BepInEx.dll" ^
/reference:"%~dp0data\BepInEx\core\0Harmony.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.CoreModule.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.UI.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.TextRenderingModule.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.IMGUIModule.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\TextMeshPro-2017.3-1.0.56-Runtime.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\Assembly-CSharp.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.ImageConversionModule.dll" ^
/reference:"F:\SteamLibrary\steamapps\common\Night Call\Night Call_Data\Managed\UnityEngine.AssetBundleModule.dll" ^
/langversion:5 ^
/nowarn:0618 ^
"%~dp0src\Mod\RussianLocalization.cs"
if %errorlevel% neq 0 (
echo [FAIL] DLL build failed
pause
exit /b 1
)
echo [OK] DLL built: %~dp0bin\RussianLocalization.dll
echo.
REM Build installer if requested
if %BUILD_INSTALLER%==1 (
echo Building installer...
python "%~dp0set_version.py" --increment
if %errorlevel% neq 0 (
echo [FAIL] Version increment failed
pause
exit /b 1
)
dotnet build "%~dp0src\Installer\Installer.csproj" -c Release
if %errorlevel% neq 0 (
echo [FAIL] Installer build failed
pause
exit /b 1
)
for /f %%v in ('python "%~dp0set_version.py"') do set VER=%%v
echo [OK] Installer built: v!VER!
echo %~dp0src\Installer\bin\Release\net472\NightCallRussian-Setup.exe
)
echo.
echo BUILD SUCCEEDED
pause