Skip to content

Commit

Permalink
fix: use os() instead of platform()
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Oct 24, 2023
1 parent 438a53e commit bc44d78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export CFLAGS := ""
platform := if os_family() == "unix" { "macos"} else {os_family()}


# list all tasks
Expand Down Expand Up @@ -73,7 +72,7 @@ run-cli *ARGS:
# run flutter desktop-app
run-desktop:
cd flutter && \
flutter run -d {{ platform }}
flutter run -d {{ os() }}

# run flutter web-app
run-web:
Expand All @@ -85,7 +84,7 @@ run-web:
build-desktop:
cd flutter && \
flutter clean && \
flutter build {{ platform }}
flutter build {{ os() }}


# build the mint docker-image
Expand Down

0 comments on commit bc44d78

Please sign in to comment.