@@ -25,6 +25,7 @@ flutter:
2525 emu Run with the android emulator;
2626 linux Run with the linux device;
2727 qlinux Run with the linux device and debugPrint() turned off;
28+ macos Run with the macos device;
2829
2930 prep Prep for PR by running tests, checks, docs.
3031 push Do a git push and bump the build number if there is one.
@@ -45,20 +46,25 @@ flutter:
4546 ignore Look for usage of ignore directives.
4647 license Look for missing top license in source code.
4748
48- test Run flutter testing.
49- itest Run flutter interation testing.
50- qtest Run above test with PAUSE=0.
51- coverage Run with `--coverage`.
52- coview View the generated html coverage in browser.
49+ test Run flutter testing.
50+ itest Run flutter interation testing.
51+ qtest Run above test with PAUSE=0.
52+ qtest.all Run qtest with output redirected - good running all tests.
53+ coverage Run with `--coverage`.
54+ coview View the generated html coverage in browser.
5355
5456 riverpod Setup `pubspec.yaml` to support riverpod.
5557 runner Build the auto generated code as *.g.dart files.
5658
5759 desktops Set up for all desktop platforms (linux, windows, macos)
5860
5961 distributions
60- apk Builds installers/$(APP ) .apk
61- tgz Builds installers/$(APP ) .tar.gz
62+ apk Builds installers/$(APP ) .apk.
63+ tgz Builds installers/$(APP ) .tar.gz.
64+ dmg-unsigned Builds unsigned macos app.
65+ dmg-dev Builds macos app with development certificate.
66+ dmg-staging Builds macos app with distribution certificate.
67+ (TODO convert to dmg).
6268
6369 publish Publish a package to pub.dev
6470
@@ -106,22 +112,26 @@ chrome:
106112pubspec.lock :
107113 flutter pub get
108114
115+ .PHONY : upgrade
116+ upgrade :
117+ flutter pub upgrade
118+
109119.PHONY : linux
110- linux : pubspec.lock $(BUILD_RUNNER )
120+ linux : pubspec.lock $(BUILD_RUNNER ) upgrade
111121 flutter run --device-id linux
112122
113123# Turn off debugPrint() output.
114124
115125.PHONY : qlinux
116- qlinux : pubspec.lock $(BUILD_RUNNER )
126+ qlinux : pubspec.lock $(BUILD_RUNNER ) upgrade
117127 flutter run --dart-define DEBUG_PRINT=" FALSE" --device-id linux
118128
119129.PHONY : macos
120- macos : $(BUILD_RUNNER )
130+ macos : $(BUILD_RUNNER ) upgrade
121131 flutter run --device-id macos
122132
123133.PHONY : android
124- android : $(BUILD_RUNNER )
134+ android : $(BUILD_RUNNER ) upgrade
125135 flutter run --device-id $(shell flutter devices | grep android | tr '•' '|' | tr -s '|' | tr -s ' ' | cut -d'|' -f2 | tr -d ' ')
126136
127137.PHONY : emu
@@ -216,7 +226,7 @@ locmax:
216226 | egrep -v ' ^ *$$' \
217227 | egrep -v ' ^ *[)},]+, *$$' \
218228 | wc -l \
219- | numfmt --grouping ); \
229+ | numfmt --format " %'f " ); \
220230 numf=$$(find lib -name "*.dart" -type f | wc -l ) ; \
221231 output=$$(find lib -name "*.dart" -exec sh -c ' \
222232 lines=$$(bash $(LOC ) "$$1" ) ; \
@@ -455,6 +465,25 @@ realclean::
455465 flutter clean
456466 flutter pub get
457467
468+ # Create a macos app
469+ # [20251029 jesscmoore] TODO: add converting to dmg
470+ # Build unsigned macos app
471+ dmg-unsigned ::
472+ flutter clean
473+ flutter build macos --release --flavor unsigned
474+
475+ # Build macos app signed with development certificate for testing
476+ # by App Developer Program togaware registered devices
477+ dmg-dev ::
478+ flutter clean
479+ flutter build macos --release --flavor dev
480+
481+ # Build macos app signed with app store distribution for testing
482+ # on Testflight or publishing
483+ dmg-staging :
484+ flutter clean
485+ flutter build macos --release --flavor staging
486+
458487# For the `dev` branch only, update the version sequence number prior
459488# to a push (relies on the git.mk being loaded after this
460489# flutter.mk). This is only undertaken through `make push` rather than
0 commit comments