From e9fc2d3d8be8f0676e5815fc8948b153ffd1985f Mon Sep 17 00:00:00 2001 From: muzili <2586850402@qq.com> Date: Fri, 3 Jan 2025 02:30:11 +0800 Subject: [PATCH 1/2] fix assert fail --- packages/h/hookmanager/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/h/hookmanager/xmake.lua b/packages/h/hookmanager/xmake.lua index 16e698ff11f..7fdda7b7a7a 100644 --- a/packages/h/hookmanager/xmake.lua +++ b/packages/h/hookmanager/xmake.lua @@ -17,7 +17,7 @@ package("hookmanager") if on_check then on_check(function (package) - assert(package:is_arch("x86") and package:config("lighthook"),"package(hookmanager) LightHook does not support the X86 architecture.") + assert(not (package:is_arch("x86") and package:config("lighthook")),"package(hookmanager) LightHook does not support the X86 architecture.") end) end From 09d002eecce9d4b592c217f23047914cd6f87bf9 Mon Sep 17 00:00:00 2001 From: muzili <2586850402@qq.com> Date: Fri, 3 Jan 2025 02:45:29 +0800 Subject: [PATCH 2/2] Exclude the arm64 arch --- packages/h/hookmanager/xmake.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/h/hookmanager/xmake.lua b/packages/h/hookmanager/xmake.lua index 7fdda7b7a7a..bd1d921c31d 100644 --- a/packages/h/hookmanager/xmake.lua +++ b/packages/h/hookmanager/xmake.lua @@ -17,6 +17,7 @@ package("hookmanager") if on_check then on_check(function (package) + assert(not package:is_arch("arm64"),"package(hookmanager) The arm64 architecture is not currently supported.") assert(not (package:is_arch("x86") and package:config("lighthook")),"package(hookmanager) LightHook does not support the X86 architecture.") end) end