| 1234567891011121314151617181920212223242526272829303132333435363738 | @echo offREM Store the current working directoryset "original_dir=%CD%"REM Change the current working directory to the script's locationcd /d "%~dp0"REM Navigate to the project rootcd ..\..\..\appflowy_flutterREM Navigate to the appflowy_flutter directory and generate filesecho Generating files for appflowy_fluttercall flutter clean >nul 2>&1 && call flutter packages pub get >nul 2>&1 && call dart run build_runner clean && call dart run build_runner build -decho Done generating files for appflowy_flutterecho Generating files for packagescd packagesfor /D %%d in (*) do (    REM Navigate into the subdirectory    cd "%%d"    REM Check if the subdirectory contains a pubspec.yaml file    if exist "pubspec.yaml" (        echo Generating freezed files in %%d...        echo Please wait while we clean the project and fetch the dependencies.        call flutter clean >nul 2>&1 && call flutter packages pub get >nul 2>&1 && call dart run build_runner clean && call dart run build_runner build -d        echo Done running build command in %%d    ) else (        echo No pubspec.yaml found in %%d, it can't be a Dart project. Skipping.    )    REM Navigate back to the packages directory    cd ..)REM Return to the original directorycd /d "%original_dir%"
 |