0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 03:30:43 -05:00
launcher/project/build.bat
CWXDEV 2bfdb1eeea Feature:
- Remove Cake
- Add build script
- Mimic the same features as Modules
2024-02-16 12:08:15 +00:00

37 lines
1.3 KiB
Batchfile

@echo off
:: Set some Vars to use
set buildFolder=..\Build
set akiDataFolder=..\Build\Aki_Data
set projReleaseFolder=.\bin\Release\net6.0\win10-x64
set launcherAssetFolder=..\Aki.Launcher\Aki_Data
set licenseFile=..\..\LICENSE.md
echo --------------- Cleaning Output Build Folder ---------------
:: Delete build folder and contents to make sure its clean
if exist %buildFolder% rmdir /s /q %buildFolder%
echo --------------- Done Cleaning Output Build Folder ---------------
echo --------------- Creating Output Build Folders ---------------
:: Create build folder if it doesn't exist
if not exist %buildFolder% mkdir %buildFolder%
if not exist %akiDataFolder% mkdir %akiDataFolder%
echo --------------- Done Creating Output Build Folders ---------------
echo --------------- Moving DLLs to %buildFolder% ---------------
:: Move DLLs/exe/json project's bin\Release folder to the build folder
xcopy "%projReleaseFolder%\Aki.Launcher.exe" %buildFolder%
xcopy "%launcherAssetFolder%" "%buildFolder%\Aki_Data" /s /e
:: If any new Dll's need to be copied, add here
echo --------------- Done Moving DLLs to %buildFolder% ---------------
echo --------------- Writing License File ---------------
:: write the contents of the license file to a txt
type %licenseFile% > "%buildFolder%\LICENSE-Launcher.txt"
echo --------------- Done Writing License File ---------------