diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 53dd4a42..30261860 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -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 \ diff --git a/README.md b/README.md index c82720b9..35c7b400 100644 --- a/README.md +++ b/README.md @@ -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.
More information @@ -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 ``` +
+ More information + + - 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`. +
+ 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. @@ -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 ^