diff --git a/hook/build.dart b/hook/build.dart index 3425e3b..8c93d47 100644 --- a/hook/build.dart +++ b/hook/build.dart @@ -4,6 +4,10 @@ import 'package:native_toolchain_rust/native_toolchain_rust.dart'; void main(List args) async { await build(args, (input, output) async { + if (!input.config.buildCodeAssets) { + return; + } + final targetOS = input.config.code.targetOS; if (targetOS == OS.iOS || targetOS == OS.android) {