4NK_wallet/scripts/copy-ihm-dist.ps1
Your Name e54821597c
Some checks failed
CI - 4NK_wallet / Code Quality (push) Failing after 33s
CI - 4NK_wallet / Unit Tests (push) Failing after 32s
CI - 4NK_wallet / Integration Tests (push) Failing after 9s
CI - 4NK_wallet / Security Tests (push) Failing after 27s
CI - 4NK_wallet / Docker Build & Test (push) Failing after 8s
CI - 4NK_wallet / Documentation Tests (push) Failing after 3s
CI - 4NK_wallet / Release Guard (push) Has been skipped
CI - 4NK_wallet / Performance Tests (push) Failing after 27s
CI - 4NK_wallet / Notify (push) Failing after 1s
chore(refine): adapter .gitea/docs/scripts au projet 4NK_wallet
2025-08-27 11:56:21 +02:00

23 lines
914 B
PowerShell

param()
$ErrorActionPreference = 'Stop'
$repoRoot = Resolve-Path "$PSScriptRoot/../.."
$ihmDist = Join-Path $repoRoot 'ihm_client/dist'
$targetAssets = Join-Path (Resolve-Path "$PSScriptRoot/..") 'assets/ihm'
$targetWeb = Join-Path (Resolve-Path "$PSScriptRoot/..") 'web/ihm'
if (!(Test-Path $ihmDist)) {
Write-Error "Le build d'ihm_client est introuvable: $ihmDist"
}
New-Item -ItemType Directory -Force -Path $targetAssets | Out-Null
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue (Join-Path $targetAssets '*') | Out-Null
Copy-Item -Recurse -Force "$ihmDist/*" $targetAssets
Write-Host "Copie terminée: $ihmDist -> $targetAssets"
New-Item -ItemType Directory -Force -Path $targetWeb | Out-Null
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue (Join-Path $targetWeb '*') | Out-Null
Copy-Item -Recurse -Force "$ihmDist/*" $targetWeb
Write-Host "Copie terminée: $ihmDist -> $targetWeb"