Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created January 3, 2021 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoochit/5f960c7f6445e4ca4e0be4b6ec4e7224 to your computer and use it in GitHub Desktop.
Save anoochit/5f960c7f6445e4ca4e0be4b6ec4e7224 to your computer and use it in GitHub Desktop.
flutter raspberry pi build release
STEP 1
------
fultter build bundle
STEP 2
-------
d:\bin\flutter\bin\cache\dart-sdk\bin\dart.exe d:\bin\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root d:\bin\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk_product --target=flutter --aot --tfa --packages .packages --output-dill build\kernel_snapshot.dill --verbose --depfile build\kernel_snapshot.d package:crocco_dashpi/main.dart
STEP 3
------
gen_snapshot_linux_x64 --causal_async_stacks --deterministic --snapshot_kind=app-aot-elf --elf=build/flutter_assets/app.so --strip --sim_use_hardfp --no-use-integer-division build/kernel_snapshot.dill
STEP 4
------
scp -r .\build\flutter_assets pi@raspberrypi.local:~/
STEP 5
------
flutter-pi --release flutter_assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment