Browse Source

update minhook to 1.3.4 (#7320)

* update minhook to 1.3.4

* limit arm

* Update xmake.lua

---------

Co-authored-by: Saikari <[email protected]>
xpxz 2 months ago
parent
commit
f4060e5c7d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/m/minhook/xmake.lua

+ 3 - 3
packages/m/minhook/xmake.lua

@@ -1,5 +1,4 @@
 package("minhook")
 package("minhook")
-
     set_homepage("https://github.com/TsudaKageyu/minhook")
     set_homepage("https://github.com/TsudaKageyu/minhook")
     set_description("The Minimalistic x86/x64 API Hooking Library for Windows.")
     set_description("The Minimalistic x86/x64 API Hooking Library for Windows.")
     set_license("BSD-2-Clause")
     set_license("BSD-2-Clause")
@@ -7,9 +6,10 @@ package("minhook")
     set_urls("https://github.com/TsudaKageyu/minhook/archive/$(version).tar.gz",
     set_urls("https://github.com/TsudaKageyu/minhook/archive/$(version).tar.gz",
              "https://github.com/TsudaKageyu/minhook.git")
              "https://github.com/TsudaKageyu/minhook.git")
 
 
+    add_versions("v1.3.4", "1aebeae4ca898330c507860acc2fca2eb335fe446a3a2b8444c3bf8b2660a14e")
     add_versions("v1.3.3", "5bec16358ec9086d4593124bf558635e89135abea2c76e5761ecaf09f4546b19")
     add_versions("v1.3.3", "5bec16358ec9086d4593124bf558635e89135abea2c76e5761ecaf09f4546b19")
 
 
-    on_install("windows", "mingw", function (package)
+    on_install("windows|!arm*", "mingw|!arm*", function (package)
         io.writefile("xmake.lua", [[
         io.writefile("xmake.lua", [[
             add_rules("mode.debug", "mode.release")
             add_rules("mode.debug", "mode.release")
             target("minhook")
             target("minhook")
@@ -33,4 +33,4 @@ package("minhook")
 
 
     on_test(function (package)
     on_test(function (package)
         assert(package:has_cfuncs("MH_Initialize", {includes = "MinHook.h"}))
         assert(package:has_cfuncs("MH_Initialize", {includes = "MinHook.h"}))
-    end)
+    end)