Skip to content

Instantly share code, notes, and snippets.

@slightfoot
Created January 22, 2021 14:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slightfoot/0dac27553b81a8174957be2245543542 to your computer and use it in GitHub Desktop.
Save slightfoot/0dac27553b81a8174957be2245543542 to your computer and use it in GitHub Desktop.
Example of compiling dart code as obfuscated AOT binary with separate debug info and obfuscation mapping file
<DART_SDK>\bin\dart <DART_SDK>\bin\snapshots\gen_kernel.dart.snapshot --platform <DART_SDK>\lib\_internal\vm_platform_strong_product.dill --aot --output test.kernel test.dart
<DART_SDK>\bin\utils\gen_snapshot --snapshot_kind=app-aot-elf --elf=test.so --strip --obfuscate --save-debugging-info=test.debug.so --save-obfuscation-map=test.map.txt test.kernel
<DART_SDK>\bin\dartaotruntime.exe test.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment