gestion_table_tournante_libre/scripts/windows/lancer.ps1
Mathieu Benoit 8243b7ac73 [UPD] licence: dual AGPL-3.0-or-later or LiLiQ-R+, SPDX headers
The project is offered under either licence, at the user's choice. Every
source header now carries the SPDX expression in place of the AGPL line;
the copyright line is unchanged. LICENSES/ holds both published texts,
pinned by SHA-256 and identical to the copies the page ships. The root
LICENSE becomes a short notice: the full AGPL text there would make
forges and licence scanners report the AGPL alone.
Checked: 685 header lines swapped and nothing else; node 6264, guards
207, build test 8, browser 1420, documentation verifier 0 faults.

--- FR ---

[UPD] licence : double AGPL-3.0-or-later ou LiLiQ-R+, en-têtes SPDX

Le projet est offert sous l'une ou l'autre licence, au choix de
l'utilisateur. Chaque en-tête de source porte l'expression SPDX à la place
de la ligne AGPL ; la ligne de copyright ne change pas. LICENSES/ garde les
deux textes publiés, épinglés par SHA-256 et identiques aux copies que la
page livre. LICENSE devient une courte notice : le texte AGPL entier y
ferait annoncer l'AGPL seule par les forges et les détecteurs de licence.
Vérifié : 685 lignes d'en-tête remplacées, rien d'autre ; node 6264,
gardes 207, construction 8, navigateur 1420, documentation 0 faute.

Assisted-by: Claude Opus 5.5
2026-10-20 09:02:17 -04:00

38 lines
1.1 KiB
PowerShell

# © 2026 TechnoLibre (http://www.technolibre.ca)
# SPDX-License-Identifier: AGPL-3.0-or-later OR LiLiQ-Rplus-1.1
# Lance l'application depuis les sources, sous Windows : la coquille
# Electron charge la page que Vite construit dans www\ (§ 13.1). run.cmd
# l'appelle, ses options sont celles de run.sh.
#
# run.cmd Electron
# run.cmd --web le serveur de Vite, http://localhost:5173
param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Options)
. (Join-Path $PSScriptRoot 'commun.ps1')
$mode = 'electron'
foreach ($option in @($Options | Where-Object { $_ })) {
switch ($option) {
'--web' { $mode = 'web' }
'--electron' { $mode = 'electron' }
default {
Write-Gtt 'usage : run.cmd [--web | --electron]'
exit 2
}
}
}
Initialize-Gtt
Push-Location $script:GttRacine
try {
if ($mode -eq 'web') {
Write-Gtt "Serveur de développement de Vite : http://localhost:5173 (Ctrl+C pour l'arrêter)."
& npm.cmd run --silent dev
exit $LASTEXITCODE
}
Invoke-Gtt 'npm.cmd' @('run', '--silent', 'build')
& npx.cmd --no-install electron .
exit $LASTEXITCODE
} finally {
Pop-Location
}