generate_flowy_icons.cmd 640 B

1234567891011121314151617181920212223242526
  1. @echo off
  2. echo 'Generating flowy icon files'
  3. REM Store the current working directory
  4. set "original_dir=%CD%"
  5. REM Change the current working directory to the script's location
  6. cd /d "%~dp0"
  7. cd ..\..\..\appflowy_flutter
  8. REM copy the resources/translations folder to
  9. REM the appflowy_flutter/assets/translation directory
  10. echo Copying resources/flowy_icons to appflowy_flutter/assets/flowy_icons
  11. xcopy /E /Y /I ..\resources\flowy_icons assets\flowy_icons
  12. call flutter packages pub get
  13. echo Generating FlowySvg class
  14. call dart run flowy_svg
  15. echo Done generating icon files.
  16. REM Return to the original directory
  17. cd /d "%original_dir%"