-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
40 lines (32 loc) · 1.11 KB
/
Copy pathbuild.bat
File metadata and controls
40 lines (32 loc) · 1.11 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
@echo off
cls
set "pathCore=Core"
set "pathEditor=Editor"
set "pathBuild=Build"
set "pathDeploy=N:\SteamLibrary\steamapps\common\ROUNDS\BepInEx\plugins"
if not exist "%pathBuild%" (
mkdir "%pathBuild%"
)
title Building Core...
echo Building Core...
cd "%pathCore%"
dotnet build -c Release -o "../%pathBuild%/Core"
cd ..
title Adding MapImageObjects to Dependencies...
echo Adding MapImageObjects to Dependencies...
copy "%pathBuild%\Core\MapImageObjects.dll" "Dependencies"
title Building Editor...
echo Building Editor...
cd "%pathEditor%"
dotnet build -c Release -o "../%pathBuild%/Editor"
cd ..
title Deploying...
echo Moving built dll files to deploy location...
copy "%pathBuild%\Core\MapImageObjects.dll" "%pathDeploy%"
copy "%pathBuild%\Editor\MapImageObjectsEditor.dll" "%pathDeploy%"
echo Adding to Thunderstore template...
copy "%pathBuild%\Core\MapImageObjects.dll" "Thunderstore\Core"
copy "%pathBuild%\Editor\MapImageObjectsEditor.dll" "Thunderstore\Editor"
title Build Complete
echo Build complete. Output is in the "%pathBuild%" folder. DLL files deployed to: "%pathDeploy%" and added to "Dependencies".
pause