madari-oss/Makefile
omkar 46571852de
Some checks failed
Build and Deploy / build_windows (push) Has been cancelled
Build and Deploy / build_android (push) Has been cancelled
Build and Deploy / build_ipa (push) Has been cancelled
Build and Deploy / build_linux (push) Has been cancelled
Build and Deploy / build_macos (push) Has been cancelled
fix: small changes
2025-02-06 23:08:55 +05:30

30 lines
1,003 B
Makefile

.PHONY: build schema build_web build_mac build_android build_windows build_ipa build_linux build_android_tv
BUILD_ID := $(or $(GITHUB_RUN_ID),dev)
build:
dart run build_runner build --delete-conflicting-outputs
schema:
dart run drift_dev schema dump lib/database/database.dart drift_schemas/drift_schema_v1.json
build_web:
flutter build web --target lib/main_web.dart --release --pwa-strategy none --web-renderer html --dart-define=BUILD_ID=$(BUILD_ID)
build_mac:
flutter build macos --target lib/main.dart --release --dart-define=BUILD_ID=$(BUILD_ID)
build_android:
flutter build apk --release --dart-define=BUILD_ID=$(BUILD_ID)
build_android_tv:
flutter build apk --release --dart-define=BUILD_ID=$(BUILD_ID) --dart-define=IS_TV=true
build_windows:
flutter build windows --release --dart-define=BUILD_ID=$(BUILD_ID)
build_ipa:
flutter build ios --release --no-codesign --dart-define=BUILD_ID=$(BUILD_ID)
build_linux:
flutter build linux --release --dart-define=BUILD_ID=$(BUILD_ID)