mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 01:30:46 -05:00
Got to a point where the server and modules are being compiled correctly. Launcher script needs... something. It's failing to build and I don't know why. TODO: - Fix Launcher Build Script - Combine sub-builds into output directory - Compress output directory - Upload release to public folder - Adapt build script to work with a dynamic tag value - Update script to only run _any_ builds when the tag exists in all three - Write drone configuration version of the dockerfile/script - Testing within the Drone env
28 lines
963 B
PowerShell
28 lines
963 B
PowerShell
Write-Output " » Beginning SPT Build Process"
|
|
|
|
# Check for required environment variables
|
|
if ([string]::IsNullOrWhiteSpace($env:MODULE_DOMAIN)) {
|
|
Write-Output " » FAIL: The MODULE_DOMAIN environment variable can not be empty."
|
|
exit 1 # Fail the build
|
|
}
|
|
$MODULE_DOMAIN = $env:MODULE_DOMAIN
|
|
|
|
# TODO: This is dynamic, based on the incoming commit information.
|
|
$RELEASE_TAG = "3.8.0-BE"
|
|
|
|
# TODO: Validate that the tag exists in all three repositories before continuing the build.
|
|
|
|
#$BEPINEX_RELEASE = "https://github.com/BepInEx/BepInEx/releases/download/v5.4.21/BepInEx_x64_5.4.21.0.zip"
|
|
|
|
$OUTPUT_DIR = ".\output"
|
|
|
|
if (Test-Path -Path $OUTPUT_DIR) {
|
|
Write-Output " » Removing Previous Output Directory"
|
|
Remove-Item -Recurse -Force $OUTPUT_DIR
|
|
}
|
|
|
|
# Build the projects
|
|
pwsh .\project\build_server.ps1 $RELEASE_TAG
|
|
pwsh .\project\build_modules.ps1 $RELEASE_TAG $MODULE_DOMAIN
|
|
pwsh .\project\build_launcher.ps1 $RELEASE_TAG
|