forked from Muriel-Salvan/AutoLoad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
30 lines (24 loc) · 1.13 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
@ECHO OFF
REM Build a packaged version of AutoLoad, 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 * *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 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"
cd ..\..\..
del AutoLoad.7z
cd Data
"%sevenZipDir%\7z.exe" a ..\AutoLoad.7z
cd ..
md_to_bbcode --input README.md --output README.bbcode