-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update dart commads #5
base: main
Are you sure you want to change the base?
Conversation
@@ -37,12 +37,12 @@ public function getFiles(): array | |||
|
|||
public function getInstallCommand(): string | |||
{ | |||
return 'flutter pub get'; | |||
return 'dart pub get'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm able to verify dart pub get
but not dart build
. I found dart run
and webdev build --output web:build
instead in the docs. @Meldiron @stnguyen90 any idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually dont use these methods for install and build commands I think. Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some in installation: https://github.com/appwrite/appwrite/blob/master/src/Appwrite/Migration/Version/V19.php#L629
} | ||
|
||
public function getBuildCommand(): string | ||
{ | ||
return 'flutter build'; | ||
return 'dart build'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be something like dart compile
. See https://github.com/open-runtimes/open-runtimes/blob/b6450aca19f6e95c319ba973422857610b718d3b/runtimes/dart-2.16/helpers/after-build.sh#L16
The dart install and build commands were using the
flutter
command which is a client side command unavailable in dart server side environments