From 87f1585f1c72a6be9758877dfca153c3ceb27def Mon Sep 17 00:00:00 2001 From: HeyChengdu Date: Fri, 31 Jul 2026 16:57:24 +0800 Subject: [PATCH] fix: skip hook when code assets are disabled --- hook/build.dart | 4 ++++ 1 file changed, 4 insertions(+) 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) {