Files
jekkosandobjecttothis fdbeb0e9b1 refactor: move Windows build scripts into tools/build, drop CI4 migration scripts (#4729)
Also clarify in build.ps1, build-steps.ps1 and build-package.ps1 that the
'.\tools\Build\...' example is a repository-root command and that callers in
other directories must provide a valid path to the scripts

Remove the one-off CI3->CI4 migration tooling that is no longer needed:
tools/ci4-lang-migration/ and tools/ci4-upgrade-language-interpolation/.

Docker is kept at the repository root rather than under tools/, per
review feedback. The Windows build scripts remain in tools/build/.
Root-relative docker paths are restored in .gitignore, BUILD.md,
INSTALL.md, gulpfile.js, and the build-release workflow.

---------

Co-authored-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-10-14 09:22:56 +02:00

36 lines
1.8 KiB
PowerShell

# ------------------------------------------------------
# Run this Powershell script to "build" OSPOS.
# The script moves to the repository root itself, so it can
# be invoked from any working directory.
# Use ".\tools\build\build.ps1" from the repository root (if you are in
# another directory, provide a valid path to this script)
# The leading ".\" tells Powershell that you trust it.
# ------------------------------------------------------
# Run from the repository root (two levels up from tools/build/)
Set-Location -Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot))
Write-Output "============================================================================="
Write-Output "Run Composer Install"
Write-Output "============================================================================="
composer install
Write-Output "============================================================================="
Write-Output "Run NPM Install"
Write-Output "============================================================================="
npm install
Write-Output "============================================================================="
Write-Output "Install the components needed to build OSPOS"
Write-Output "============================================================================="
npm run build
Write-Output "============================================================================="
Write-Output "Restore configured .env file if it exists."
Write-Output "(If one is found in a folder located at ../env/<name-of-ospos-root-folder>)"
Write-Output "============================================================================="
$currentfolder = Split-Path -Path (Get-Location) -Leaf
if (Test-Path -Path ../env/$currentfolder/.env -PathType Leaf) {
Copy ../env/$currentfolder/.env
}