-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinject_icons.bat
More file actions
28 lines (24 loc) · 1.21 KB
/
Copy pathinject_icons.bat
File metadata and controls
28 lines (24 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
:: Injects flo icons into Windows and Android platform runner folders
cd /d "%~dp0"
set ASSETS=%~dp0assets
echo [+] Injecting platform icons...
:: ── Windows ──────────────────────────────────────────────────────────────────
if exist "windows\runner\resources" (
if exist "%ASSETS%\app_icon.ico" (
copy /Y "%ASSETS%\app_icon.ico" "windows\runner\resources\app_icon.ico" >nul
echo [OK] Windows icon injected.
)
)
:: ── Android ──────────────────────────────────────────────────────────────────
if exist "android\app\src\main\res" (
for %%f in (mipmap-mdpi mipmap-hdpi mipmap-xhdpi mipmap-xxhdpi mipmap-xxxhdpi) do (
if exist "%ASSETS%\android_%%f.png" (
if exist "android\app\src\main\res\%%f" (
copy /Y "%ASSETS%\android_%%f.png" "android\app\src\main\res\%%f\ic_launcher.png" >nul
echo [OK] Android %%f icon injected.
)
)
)
)
echo [+] Icons done.