Update build scripts to include release mode for client and staff app builds

This commit is contained in:
Achintha Isuru
2026-01-26 16:44:27 -05:00
parent a1cea7d9a2
commit 14e0878f86
3 changed files with 15 additions and 13 deletions

View File

@@ -24,11 +24,12 @@ mobile-client-build:
@if [ -z "$(PLATFORM)" ]; then \
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
fi
@echo "--> Building client app for $(PLATFORM)..."
$(eval MODE ?= release)
@echo "--> Building client app for $(PLATFORM) in $(MODE) mode..."
@cd $(MOBILE_DIR) && \
melos run gen:l10n --filter="core_localization" && \
melos run gen:build --filter="core_localization" && \
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM)"
melos exec --scope="core_localization" -- "dart run slang" && \
melos exec --scope="core_localization" -- "dart run build_runner build --delete-conflicting-outputs" && \
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE)"
# --- Staff App ---
mobile-staff-dev-android:
@@ -39,8 +40,9 @@ mobile-staff-build:
@if [ -z "$(PLATFORM)" ]; then \
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
fi
@echo "--> Building staff app for $(PLATFORM)..."
$(eval MODE ?= release)
@echo "--> Building staff app for $(PLATFORM) in $(MODE) mode..."
@cd $(MOBILE_DIR) && \
melos run gen:l10n --filter="core_localization" && \
melos run gen:build --filter="core_localization" && \
melos exec --scope="krowwithus_staff" -- "flutter build $(PLATFORM)"
melos exec --scope="core_localization" -- "dart run slang" && \
melos exec --scope="core_localization" -- "dart run build_runner build --delete-conflicting-outputs" && \
melos exec --scope="krowwithus_staff" -- "flutter build $(PLATFORM) --$(MODE)"