20 lines
825 B
PowerShell
20 lines
825 B
PowerShell
# Script to update NextForm logo from external folder
|
||
$sourceFolder = "c:\Users\PC\Desktop\NextForm – Your Smart Fitness Twin\sliki"
|
||
$adminPublic = "c:\Users\PC\Desktop\fitaiProto\apps\admin\public\nextform-logo.png"
|
||
$mobilePublic = "c:\Users\PC\Desktop\fitaiProto\apps\mobile\public\nextform-logo.png"
|
||
|
||
# Find the latest PNG in source folder
|
||
$latestPng = Get-ChildItem "$sourceFolder\*.png" -ErrorAction SilentlyContinue |
|
||
Sort-Object LastWriteTime -Descending |
|
||
Select-Object -First 1
|
||
|
||
if ($latestPng) {
|
||
Copy-Item $latestPng.FullName $adminPublic -Force
|
||
Copy-Item $latestPng.FullName $mobilePublic -Force
|
||
Write-Host "✅ Logo updated from: $($latestPng.Name)"
|
||
Write-Host "Admin: $adminPublic"
|
||
Write-Host "Mobile: $mobilePublic"
|
||
} else {
|
||
Write-Host "❌ No PNG found in: $sourceFolder"
|
||
}
|