Update build scripts to include release mode for client and staff app builds
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user