Skip to content

Commit 130923a

Browse files
authored
Merge pull request AppFlowy-IO#263 from MikeWallaceDev/fix_build_process_on_windows
fixed cargo make to work on Windows
2 parents fa006e0 + 584af6a commit 130923a

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

frontend/scripts/makefile/flutter.toml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,28 @@ script = [
175175
script_runner = "@shell"
176176

177177
[tasks.generate_language_files]
178+
script_runner = "@shell"
178179
script = [
179-
"""
180-
cd app_flowy/
180+
'''
181+
cd app_flowy
181182
flutter clean
182183
flutter pub get
183184
flutter pub run easy_localization:generate -S assets/translations/
184-
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
185-
""",
185+
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
186+
'''
186187
]
187-
script_runner = "@shell"
188+
189+
190+
[tasks.generate_language_files.windows]
191+
script_runner = "@duckscript"
192+
script = [
193+
'''
194+
cd app_flowy
195+
exec cmd.exe /c flutter clean
196+
exec cmd.exe /c flutter pub get
197+
exec cmd.exe /c flutter pub run easy_localization:generate -S assets/translations/
198+
exec cmd.exe /c flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
199+
'''
200+
]
201+
188202

0 commit comments

Comments
 (0)