Update build scripts to include release mode for client and staff app builds
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/// Locales: 2
|
/// Locales: 2
|
||||||
/// Strings: 1026 (513 per locale)
|
/// Strings: 1026 (513 per locale)
|
||||||
///
|
///
|
||||||
/// Built on 2026-01-26 at 21:30 UTC
|
/// Built on 2026-01-26 at 21:40 UTC
|
||||||
|
|
||||||
// coverage:ignore-file
|
// coverage:ignore-file
|
||||||
// ignore_for_file: type=lint, unused_import
|
// ignore_for_file: type=lint, unused_import
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ client-app-android-apk-build-script: &client-app-android-apk-build-script
|
|||||||
dart pub global activate melos
|
dart pub global activate melos
|
||||||
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
||||||
make mobile-install
|
make mobile-install
|
||||||
make mobile-client-build PLATFORM=apk
|
make mobile-client-build PLATFORM=apk MODE=release
|
||||||
|
|
||||||
client-app-ios-build-script: &client-app-ios-build-script
|
client-app-ios-build-script: &client-app-ios-build-script
|
||||||
name: 👷🍎 Build Client App (iOS)
|
name: 👷🍎 Build Client App (iOS)
|
||||||
@@ -13,7 +13,7 @@ client-app-ios-build-script: &client-app-ios-build-script
|
|||||||
dart pub global activate melos
|
dart pub global activate melos
|
||||||
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
||||||
make mobile-install
|
make mobile-install
|
||||||
make mobile-client-build PLATFORM=ios
|
make mobile-client-build PLATFORM=ios MODE=release
|
||||||
|
|
||||||
staff-app-android-apk-build-script: &staff-app-android-apk-build-script
|
staff-app-android-apk-build-script: &staff-app-android-apk-build-script
|
||||||
name: 👷🤖 Build Staff App APK (Android)
|
name: 👷🤖 Build Staff App APK (Android)
|
||||||
@@ -21,7 +21,7 @@ staff-app-android-apk-build-script: &staff-app-android-apk-build-script
|
|||||||
dart pub global activate melos
|
dart pub global activate melos
|
||||||
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
||||||
make mobile-install
|
make mobile-install
|
||||||
make mobile-staff-build PLATFORM=apk
|
make mobile-staff-build PLATFORM=apk MODE=release
|
||||||
|
|
||||||
staff-app-ios-build-script: &staff-app-ios-build-script
|
staff-app-ios-build-script: &staff-app-ios-build-script
|
||||||
name: 👷🍎 Build Staff App (iOS)
|
name: 👷🍎 Build Staff App (iOS)
|
||||||
@@ -29,7 +29,7 @@ staff-app-ios-build-script: &staff-app-ios-build-script
|
|||||||
dart pub global activate melos
|
dart pub global activate melos
|
||||||
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
||||||
make mobile-install
|
make mobile-install
|
||||||
make mobile-staff-build PLATFORM=ios
|
make mobile-staff-build PLATFORM=ios MODE=release
|
||||||
|
|
||||||
# Reusable script for distributing Android to Firebase
|
# Reusable script for distributing Android to Firebase
|
||||||
distribute-android-script: &distribute-android-script
|
distribute-android-script: &distribute-android-script
|
||||||
|
|||||||
@@ -24,11 +24,12 @@ mobile-client-build:
|
|||||||
@if [ -z "$(PLATFORM)" ]; then \
|
@if [ -z "$(PLATFORM)" ]; then \
|
||||||
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
|
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
|
||||||
fi
|
fi
|
||||||
@echo "--> Building client app for $(PLATFORM)..."
|
$(eval MODE ?= release)
|
||||||
|
@echo "--> Building client app for $(PLATFORM) in $(MODE) mode..."
|
||||||
@cd $(MOBILE_DIR) && \
|
@cd $(MOBILE_DIR) && \
|
||||||
melos run gen:l10n --filter="core_localization" && \
|
melos exec --scope="core_localization" -- "dart run slang" && \
|
||||||
melos run gen:build --filter="core_localization" && \
|
melos exec --scope="core_localization" -- "dart run build_runner build --delete-conflicting-outputs" && \
|
||||||
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM)"
|
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE)"
|
||||||
|
|
||||||
# --- Staff App ---
|
# --- Staff App ---
|
||||||
mobile-staff-dev-android:
|
mobile-staff-dev-android:
|
||||||
@@ -39,8 +40,9 @@ mobile-staff-build:
|
|||||||
@if [ -z "$(PLATFORM)" ]; then \
|
@if [ -z "$(PLATFORM)" ]; then \
|
||||||
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
|
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
|
||||||
fi
|
fi
|
||||||
@echo "--> Building staff app for $(PLATFORM)..."
|
$(eval MODE ?= release)
|
||||||
|
@echo "--> Building staff app for $(PLATFORM) in $(MODE) mode..."
|
||||||
@cd $(MOBILE_DIR) && \
|
@cd $(MOBILE_DIR) && \
|
||||||
melos run gen:l10n --filter="core_localization" && \
|
melos exec --scope="core_localization" -- "dart run slang" && \
|
||||||
melos run gen:build --filter="core_localization" && \
|
melos exec --scope="core_localization" -- "dart run build_runner build --delete-conflicting-outputs" && \
|
||||||
melos exec --scope="krowwithus_staff" -- "flutter build $(PLATFORM)"
|
melos exec --scope="krowwithus_staff" -- "flutter build $(PLATFORM) --$(MODE)"
|
||||||
|
|||||||
Reference in New Issue
Block a user