mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: reduce build time (#3519)
This commit is contained in:
committed by
GitHub
parent
cd6e133c86
commit
25a98cda81
@ -15,7 +15,7 @@ REM the appflowy_flutter/assets/translation directory
|
||||
echo Copying resources/translations to appflowy_flutter/assets/translations
|
||||
xcopy /E /Y /I ..\resources\translations assets\translations
|
||||
|
||||
call flutter packages pub get
|
||||
REM call flutter packages pub get
|
||||
|
||||
echo Specifying source directory for AppFlowy Localizations.
|
||||
call dart run easy_localization:generate -S assets/translations/
|
||||
|
@ -1,5 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
no_pub_get=false
|
||||
|
||||
while getopts 's' flag; do
|
||||
case "${flag}" in
|
||||
s) no_pub_get=true ;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "Generating language files"
|
||||
|
||||
# Store the current working directory
|
||||
@ -16,7 +24,9 @@ rm -rf assets/translations/
|
||||
mkdir -p assets/translations/
|
||||
cp -f ../resources/translations/*.json assets/translations/
|
||||
|
||||
flutter packages pub get
|
||||
if [ "$no_pub_get" = false ]; then
|
||||
flutter packages pub get
|
||||
fi
|
||||
|
||||
echo "Specifying source directory for AppFlowy Localizations."
|
||||
dart run easy_localization:generate -S assets/translations/
|
||||
|
Reference in New Issue
Block a user