install.cmd, install_dev.cmd and run.cmd hand over to PowerShell scripts that place Node of the .node-version major under %LOCALAPPDATA%, checked against the SHA-256 that nodejs.org publishes, then run npm ci: no administrator right is needed. The scripts stay within Windows PowerShell 5.1, shipped with Windows, and carry a UTF-8 byte order mark, without which 5.1 reads them in the system code page and mangles accents. The licence guard now reads .ps1, .cmd, .nix and Makefile. Checked: parsed and run under pwsh in a container, Node for win-x64 downloaded, verified and extracted; not yet run on Windows itself. --- FR --- [ADD] scripts : installer et lancer sous Windows, par PowerShell 5.1 install.cmd, install_dev.cmd et run.cmd passent la main à des scripts PowerShell qui posent Node de la majeure de .node-version sous %LOCALAPPDATA%, vérifié contre la somme SHA-256 que publie nodejs.org, puis lancent npm ci : aucun droit d'administrateur n'est requis. Les scripts s'en tiennent à Windows PowerShell 5.1, livré avec Windows, et portent une marque d'ordre d'octets UTF-8, sans laquelle 5.1 les lit dans la page de code du système et défigure les accents. La garde de licence lit désormais les .ps1, .cmd, .nix et le Makefile. Vérifié : analysés et exécutés sous pwsh en conteneur, Node win-x64 téléchargé, vérifié, extrait ; pas encore exécutés sous Windows même. Assisted-by: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EUXSGcwCLSC69FWEdCtWSb
23 lines
822 B
PowerShell
23 lines
822 B
PowerShell
# © 2026 TechnoLibre (http://www.technolibre.ca)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
|
|
|
# Installe sous Windows de quoi lancer l'application depuis les sources et
|
|
# jouer les épreuves : Node de la majeure de .node-version, posé sous
|
|
# %LOCALAPPDATA% sans droits d'administrateur, et les dépendances de
|
|
# package-lock.json. -Dev ajoute le Chromium de Playwright des épreuves du
|
|
# navigateur. install.cmd et install_dev.cmd l'appellent.
|
|
param([switch]$Dev)
|
|
. (Join-Path $PSScriptRoot 'commun.ps1')
|
|
|
|
Install-GttNode
|
|
[void](Enable-GttNode)
|
|
Push-Location $script:GttRacine
|
|
try {
|
|
Invoke-GttNpmCi
|
|
if ($Dev) {
|
|
Invoke-Gtt 'npx.cmd' @('--no-install', 'playwright', 'install', '--only-shell', 'chromium')
|
|
}
|
|
} finally {
|
|
Pop-Location
|
|
}
|
|
Write-Gtt 'Installation terminée. Lancer : run.cmd'
|