From a1be0e6d499756a2aca7d7b9d7922799d76d934b Mon Sep 17 00:00:00 2001 From: nocode Date: Wed, 8 Jul 2026 03:37:31 +0200 Subject: [PATCH] feat(gameboot-windows): add support for installers.json and Install-Games.ps1 deployment Extend the file deployment loop to include installers.json and Install-Games.ps1 files. Add conditional path validation before copying to gracefully handle missing files instead of failing on non-existent paths. --- .../local/share/fws/gameboot-windows/Install-FwsGameboot.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/releng/airootfs/usr/local/share/fws/gameboot-windows/Install-FwsGameboot.ps1 b/configs/releng/airootfs/usr/local/share/fws/gameboot-windows/Install-FwsGameboot.ps1 index a38f370..dfe7433 100644 --- a/configs/releng/airootfs/usr/local/share/fws/gameboot-windows/Install-FwsGameboot.ps1 +++ b/configs/releng/airootfs/usr/local/share/fws/gameboot-windows/Install-FwsGameboot.ps1 @@ -44,8 +44,9 @@ if ($pwdRequired -and -not $PSBoundParameters.ContainsKey('Password')) { # --- Deploiement des scripts + durcissement ACL (exe potentiellement lance ELEVE) --- $dest = Join-Path $Env:ProgramData 'FWS' New-Item -ItemType Directory -Force -Path $dest | Out-Null -foreach ($f in 'fws-return.ps1','fws-play.ps1','games.json') { - Copy-Item (Join-Path $PSScriptRoot $f) $dest -Force +foreach ($f in 'fws-return.ps1','fws-play.ps1','games.json','installers.json','Install-Games.ps1') { + $src = Join-Path $PSScriptRoot $f + if (Test-Path $src) { Copy-Item $src $dest -Force } } # SYSTEM + Administrateurs = plein controle ; Utilisateurs = lecture seule ; heritage retire. & icacls $dest /inheritance:r /grant:r 'SYSTEM:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' '*S-1-5-32-545:(OI)(CI)RX' | Out-Null