Files
SEQUA-Engine/scripts/check.ps1
T
Ange-Marie MAURIN - A2M Systèmes da0d31385b build: arborescence bin/<plateforme>/<type> et build unifié (ADR 0010)
- platform/layout : racine sequa-root.json, chemins des composants, arguments et chemins en UTF-8.
- Règles install() : bin/windows-x64/{debug,release,asan}/ (core, render, studio + ui, engines).
- Le Core trouve sequa-render et les adaptateurs depuis la racine (--sequa-root, passé par
  Studio host à sa copie fantôme) : plus de render-unavailable depuis le panneau Rendu.
- L'adaptateur Godot cherche Godot et son projet à côté de lui (surcharge par --adapter-options) ;
  template_release pour le type release. Godot hébergé dans les presets debug et release.
- scripts/build-all.ps1 : Godot, C++, interface, arrêt des processus du dossier visé, install ;
  check.ps1 l'appelle (modification de l'ADR 0004).
- docs/installation/ : compiler, lancer, installer et désinstaller par plateforme.
2026-11-07 15:50:37 +01:00

63 lines
1.7 KiB
PowerShell

# SPDX-License-Identifier: MPL-2.0
#
# Verification locale complete avant commit (remplace la CI) :
# Studio, puis build unifie de tous les types Windows.
# Messages en ASCII : compatible Windows PowerShell 5.1 sans BOM.
#
# .\scripts\check.ps1
# .\scripts\check.ps1 -SkipStudio
<#
.SYNOPSIS
Verification locale complete avant commit (remplace la CI).
.DESCRIPTION
Lance npm ci et npm run check dans studio\ui, puis build-all.ps1 -Type all :
Godot, presets windows-msvc-debug, -release et -asan (compilation et tests),
remplissage de bin\windows-x64\<type>\.
.PARAMETER SkipStudio
Ne verifie pas Studio.
.PARAMETER Help
Affiche cette aide.
#>
[CmdletBinding()]
param(
[switch]$SkipStudio,
[Alias("h", "?")]
[switch]$Help
)
if ($Help) {
Get-Help $PSCommandPath -Detailed
exit 0
}
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $PSScriptRoot
# Interface d'abord : npm run check construit aussi studio\ui\dist, que build-all installe.
$studio = Join-Path $root "studio\ui"
if (-not $SkipStudio -and (Test-Path (Join-Path $studio "package.json"))) {
Push-Location $studio
try {
Write-Host "==> studio : npm ci" -ForegroundColor Cyan
npm ci
if ($LASTEXITCODE -ne 0) { throw "Echec : npm ci" }
Write-Host "==> studio : npm run check" -ForegroundColor Cyan
npm run check
if ($LASTEXITCODE -ne 0) { throw "Echec : npm run check" }
}
finally {
Pop-Location
}
}
# Build unifie (ADR 0010, modification de l'ADR 0004) : debug, release et asan, Godot
# compris, puis bin\windows-x64\<type>\.
& (Join-Path $PSScriptRoot "build-all.ps1") -Type all -SkipUi
Write-Host "Verification locale OK" -ForegroundColor Green