generate.sh 818 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # Store the current working directory
  3. original_dir=$(pwd)
  4. # Change the current working directory to the script's location
  5. cd "$(dirname "$0")"
  6. # Call the script in the 'language_files' folder
  7. echo "Generating files using easy_localization"
  8. cd language_files
  9. # Allow execution permissions on CI
  10. chmod +x ./generate_language_files.sh
  11. ./generate_language_files.sh "$@"
  12. # Return to the main script directory
  13. cd ..
  14. # Call the script in the 'freezed' folder
  15. echo "Generating files using build_runner"
  16. cd freezed
  17. # Allow execution permissions on CI
  18. chmod +x ./generate_freezed.sh
  19. ./generate_freezed.sh "$@"
  20. cd..
  21. echo "Generating env files using build_runner"
  22. cd env
  23. # Allow execution permissions on CI
  24. chmod +x ./generate_env.sh
  25. ./generate_env.sh "$@"
  26. # Return to the original directory
  27. cd "$original_dir"