Files
TubeCards/scripts/update_generated_files.sh
friebetill 80f218097d Initial commit
Add Space version 2.0.1
2022-03-28 14:56:00 +02:00

14 lines
516 B
Bash
Executable File

#!/bin/sh
bold=$(tput bold)
normal=$(tput sgr0)
printf "%s\n" "${bold}Fetching translations...${normal}"
flutter pub run lang_table:generate --platform=airTable --target=Flutter --input="$I18N_AIRTABLE_ADDRESS" --api-key="$I18N_AIRTABLE_KEY"
printf "%s\n" "${bold}Done.${normal}"
printf "%s\n" "${bold}Update generated flutter files...${normal}"
flutter pub run build_runner build --delete-conflicting-outputs
flutter packages pub run gen_lang:generate --output-dir lib/i18n
printf "%s\n" "${bold}Done.${normal}"