Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fixed cargo make to work on Windows

MikeWallaceDev584af6aa7139
diff --git a/frontend/scripts/makefile/flutter.toml b/frontend/scripts/makefile/flutter.toml
index 20705fb81a..bf7310eaea 100644
--- a/frontend/scripts/makefile/flutter.toml
+++ b/frontend/scripts/makefile/flutter.toml
@@ -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
+ '''
+]
+