Merge pull request #263 from MikeWallaceDev/fix_build_process_on_windows

fixed cargo make to work on Windows
This commit is contained in:
AppFlowy.IO 2022-01-20 18:20:28 +08:00 committed by GitHub
commit 130923af55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,14 +175,28 @@ script = [
script_runner = "@shell"
[tasks.generate_language_files]
script_runner = "@shell"
script = [
"""
cd app_flowy/
'''
cd app_flowy
flutter clean
flutter pub get
flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
""",
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
'''
]
script_runner = "@shell"
[tasks.generate_language_files.windows]
script_runner = "@duckscript"
script = [
'''
cd app_flowy
exec cmd.exe /c flutter clean
exec cmd.exe /c flutter pub get
exec cmd.exe /c flutter pub run easy_localization:generate -S assets/translations/
exec cmd.exe /c flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
'''
]