Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ In each step below with Bash commands, the commands start with a set of `export`
--sdk-root ~/dev/flutter-for-pi/bin/cache/artifacts/engine/common/flutter_patched_sdk_product \
--target=flutter \
--aot --tfa -Ddart.vm.product=true \
--packages .packages --output-dill build/kernel_snapshot.dill --depfile build/kernel_snapshot.d \
--packages .dart_tool\package_config.json --output-dill build/kernel_snapshot.dill --depfile build/kernel_snapshot.d \
package:$APPNAME/main.dart
../engine-binaries/$ARM/gen_snapshot_linux_x64_release \
--deterministic --snapshot_kind=app-aot-elf \
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If you encounter issues running flutter-pi on any of the supported platforms lis
usermod -a -G render pi
```

5. Finish and reboot.
7. Finish and reboot.

<details>
<summary>More information</summary>
Expand Down Expand Up @@ -195,13 +195,19 @@ rsync -a ./build/flutter_assets/ pi@raspberrypi:/home/pi/flutter_gallery/
--aot ^
--tfa ^
-Ddart.vm.product=true ^
--packages .packages ^
--packages .dart_tool\package_config.json ^
--output-dill build\kernel_snapshot.dill ^
--verbose ^
--depfile build\kernel_snapshot.d ^
package:my_app_name/main.dart
```

<details>
<summary>More information</summary>

- In versions prior to Flutter 3.3.0 the `--packages` argument should be set to `.packages`. In versions greater than or equal to 3.3.0 the `--packages` argument should be set to `.dart_tool\package_config.json`.
</details>

5. Fetch the latest `gen_snapshot_linux_x64_release` I provide in the [engine binaries repo](https://github.com/ardera/flutter-engine-binaries-for-arm).
6. The following steps must be executed on a linux x64 machine. If you're on windows, you can use [WSL](https://docs.microsoft.com/de-de/windows/wsl/install-win10). If you're on macOS, you can use a linux VM.
7. Build the `app.so`. If you're building for _arm64_, you need to omit the `--sim-use-hardfp` flag.
Expand Down Expand Up @@ -240,7 +246,7 @@ rsync -a ./build/flutter_assets/ pi@raspberrypi:/home/pi/flutter_gallery/
--aot ^
--tfa ^
-Ddart.vm.product=true ^
--packages .packages ^
--packages .dart_tool\package_config.json ^
--output-dill build\kernel_snapshot.dill ^
--verbose ^
--depfile build\kernel_snapshot.d ^
Expand Down