[ADD] scripts: Windows install and run through PowerShell 5.1
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
2026-10-06 05:51:31 -04:00
|
|
|
|
# © 2026 TechnoLibre (http://www.technolibre.ca)
|
[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
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later OR LiLiQ-Rplus-1.1
|
[ADD] scripts: Windows install and run through PowerShell 5.1
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
2026-10-06 05:51:31 -04:00
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
}
|