-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cmd
38 lines (32 loc) · 1.53 KB
/
build.cmd
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
@ECHO OFF
REM Build a packaged version of AutoTest, ready to be uploaded on NexusMods.
REM Uses the following environment variables:
REM * *gameDir*: Path to the game path (storing the game executables) [default: C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition]
REM * *papyrusUtilDir*: Path to the PapyrusUtils mod, containing scripts sources of the JsonUtil library [default: %gameDir%\Data]
REM * *consoleUtilDir*: Path to the ConsoleUtil mod, containing scripts sources [default: %gameDir%\Data]
REM * *skyUILibDir*: Path to the skyUILibDir mod, containing scripts sources [default: %gameDir%\Data]
REM * *sevenZipDir*: Path to the 7-zip utility [default: C:\Program Files\7-Zip]
REM Set default values
IF NOT DEFINED gameDir (
set "gameDir=C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition"
)
IF NOT DEFINED papyrusUtilDir (
set "papyrusUtilDir=%gameDir%\Data"
)
IF NOT DEFINED consoleUtilDir (
set "consoleUtilDir=%gameDir%\Data"
)
IF NOT DEFINED skyUILibDir (
set "skyUILibDir=%gameDir%\Data"
)
IF NOT DEFINED sevenZipDir (
set "sevenZipDir=C:\Program Files\7-Zip"
)
cd .\Data\Source\Scripts
"%gameDir%\Papyrus Compiler\PapyrusCompiler.exe" . -all -output="..\..\Scripts" -flags="%gameDir%\Data\Source\Scripts\TESV_Papyrus_Flags.flg" -import="%gameDir%\Data\Source\Scripts;%papyrusUtilDir%\Source\Scripts;%consoleUtilDir%\Source\Scripts;%skyUILibDir%\Source\Scripts"
cd ..\..\..
del AutoTest.7z
cd Data
"%sevenZipDir%\7z.exe" a ..\AutoTest.7z *
cd ..
md_to_bbcode --input README.md --output README.bbcode