Browse Source

Auto-update watcher to 0.13.5 (#6394)

* Update watcher to 0.13.5

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
ruki 6 months ago
parent
commit
3eefa043fb
1 changed files with 11 additions and 1 deletions
  1. 11 1
      packages/w/watcher/xmake.lua

+ 11 - 1
packages/w/watcher/xmake.lua

@@ -7,6 +7,7 @@ package("watcher")
     set_urls("https://github.com/e-dant/watcher/archive/refs/tags/release/$(version).tar.gz",
              "https://github.com/e-dant/watcher.git")
 
+    add_versions("0.13.5", "5bb0ea65b94d9444a6853eacff3a9b2121f0415d0ac895388d241f6f8be1e695")
     add_versions("0.13.2", "b037b4717a292892d61f619f9a2497ac0a49e8fd73d2c6bf4f9a6bef320718b2")
     add_versions("0.12.2", "1423b16734e588bce2a79e0ed205c8c2d651eea891b915862d7270873c72ca54")
     add_versions("0.11.0", "dd92496d77b6bc27e27ed28253faae4d81bc58b19407d154bb49504b2af73664")
@@ -18,7 +19,16 @@ package("watcher")
         add_frameworks("CoreFoundation", "CoreServices")
     end
 
-    on_install("windows", "linux", "macosx", "mingw", "msys", "android", "cross", function (package)
+    if on_check then
+        on_check("android", function (package)
+            if package:version() and package:version():ge("0.13.5") then
+                local ndk = package:toolchain("ndk"):config("ndkver")
+                assert(ndk and tonumber(ndk) > 22, "package(watcher >=0.13.5) require ndk version > 22")
+            end
+        end)
+    end
+
+    on_install("!wasm and !iphoneos and !bsd", function (package)
         os.cp("include", package:installdir())
     end)