Created
January 22, 2021 14:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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