Initial upload: fin65-mobile
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
REM ============================================================
|
||||
REM FIN65 - Remplacer l'icone Android Flutter
|
||||
REM ============================================================
|
||||
|
||||
set "ROOT_DIR=D:\07-Logiciels\20-FIN65"
|
||||
set "MOBILE_DIR=%ROOT_DIR%\fin65_mobile"
|
||||
set "PUB_CACHE=%ROOT_DIR%\.pub-cache"
|
||||
|
||||
echo.
|
||||
echo ==========================================
|
||||
echo FIN65 - Remplacement icone Android
|
||||
echo ==========================================
|
||||
echo.
|
||||
|
||||
if not exist "%MOBILE_DIR%" (
|
||||
echo [ERREUR] Dossier mobile introuvable :
|
||||
echo %MOBILE_DIR%
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
cd /d "%MOBILE_DIR%"
|
||||
|
||||
if not exist "pubspec.yaml" (
|
||||
echo [ERREUR] pubspec.yaml introuvable dans :
|
||||
echo %MOBILE_DIR%
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
mkdir "assets\icon" >nul 2>&1
|
||||
|
||||
copy /Y "%~dp0assets\icon\app_icon.png" "assets\icon\app_icon.png" >nul
|
||||
copy /Y "%~dp0assets\icon\adaptive_foreground.png" "assets\icon\adaptive_foreground.png" >nul
|
||||
copy /Y "%~dp0flutter_launcher_icons.yaml" "flutter_launcher_icons.yaml" >nul
|
||||
|
||||
echo Icones copiees dans :
|
||||
echo %MOBILE_DIR%\assets\icon
|
||||
echo.
|
||||
|
||||
echo Ajout/verif du package flutter_launcher_icons...
|
||||
flutter pub add --dev flutter_launcher_icons
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo [ERREUR] Impossible d'ajouter flutter_launcher_icons.
|
||||
echo Verifie la connexion internet et Flutter.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Generation des icones Android...
|
||||
dart run flutter_launcher_icons
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo [ERREUR] Generation des icones echouee.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Nettoyage Flutter...
|
||||
flutter clean
|
||||
flutter pub get
|
||||
|
||||
echo.
|
||||
echo ==========================================
|
||||
echo Icone FIN65 appliquee.
|
||||
echo ==========================================
|
||||
echo.
|
||||
echo Relance ensuite :
|
||||
echo flutter run
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user