|
@@ -7,7 +7,11 @@ package("cosmocc")
|
|
|
"https://github.com/xmake-mirror/cosmopolitan/releases/download/$(version)/cosmocc-$(version).zip")
|
|
|
add_versions("3.2.4", "d2fa6dbf6f987310494581deff5b915dbdc5ca701f20f7613bb0dcf1de2ee511")
|
|
|
|
|
|
- on_install("@macosx", "@linux", "@bsd", "@cygwin", "@msys", function (package)
|
|
|
+ on_install("@windows", "@macosx", "@linux", "@bsd", "@cygwin", "@msys", function (package)
|
|
|
+ if is_host("windows") then
|
|
|
+ import("lib.detect.find_tool")
|
|
|
+ assert(find_tool("sh"), "cosmocc need sh/bash, please install it first!")
|
|
|
+ end
|
|
|
os.cp("*", package:installdir(), {symlink = true})
|
|
|
end)
|
|
|
|