generate_flowy_icons.sh 474 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. echo "Generating flowy icon files"
  3. # Store the current working directory
  4. original_dir=$(pwd)
  5. cd "$(dirname "$0")"
  6. # Navigate to the project root
  7. cd ../../../appflowy_flutter
  8. rm -rf assets/flowy_icons/
  9. mkdir -p assets/flowy_icons/
  10. rsync -r ../resources/flowy_icons/ assets/flowy_icons/
  11. flutter packages pub get
  12. echo "Generating FlowySvg classes"
  13. dart run flowy_svg
  14. echo "Done generating icon files."
  15. # Return to the original directory
  16. cd "$original_dir"