Kaynağa Gözat

fix hookmanager assert fail (#6119)

* fix assert fail

* Exclude the arm64 arch
muzili 8 ay önce
ebeveyn
işleme
8ca17794d4
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      packages/h/hookmanager/xmake.lua

+ 2 - 1
packages/h/hookmanager/xmake.lua

@@ -17,7 +17,8 @@ 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("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