Skip to content

Commit

Permalink
Add ultralight 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug committed Mar 5, 2025
1 parent bb54400 commit afc9a61
Showing 1 changed file with 51 additions and 8 deletions.
59 changes: 51 additions & 8 deletions packages/u/ultralight/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,62 @@ package("ultralight")
set_license("LGPL")

if is_plat("windows") then
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v1.3.0/ultralight-sdk-1.3.0-win-x64.7z")
add_versions("1.3.0", "cc8bfc66a4c40c88fa02691febe6f21c248a2a30d17cfe5470fccc3a461ce49e")
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v$(version)", {version = function(version)
if version:endswith("beta") then
return version .. "/ultralight-sdk-" .. version:sub(1, -6) .. "b-win-x64.7z"
else
return version .. "/ultralight-sdk-" .. version .. "-win-x64.7z"
end
end})
--add_versions("1.3.0", "cc8bfc66a4c40c88fa02691febe6f21c248a2a30d17cfe5470fccc3a461ce49e")
add_versions("1.4.0-beta", "6749c3d1aef49ba1c4ca783a453fe2f68b827b5935534751b68623b4b0eb91f1")
elseif is_plat("linux") then
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v1.3.0/ultralight-sdk-1.3.0-linux-x64.7z")
add_versions("1.3.0", "1de6298b5ed3c5e0c22ac27e0e30fcb0ba6d195467a58ee44ef4e13dd1a6d352")
elseif is_plat("macosx") then
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v1.3.0/ultralight-sdk-1.3.0-mac-x64.7z")
add_versions("1.3.0", "bbf81ed456a617a60a19e9a76946e4479d5bac877f859005c50f66e9ec3c77a2")
if os.arch() == "arm64" then
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v$(version)/ultralight-sdk-$(version)-linux-arm64.7z", {version = function(version)
if version:endswith("beta") then
return version .. "/ultralight-sdk-" .. version:sub(1, -6) .. "b-linux-arm64.7z"
else
return version .. "/ultralight-sdk-" .. version .. "-linux-arm64.7z"
end
end})
add_versions("1.4.0-beta", "efa8f6c8b351daa42570f11bcb162f280cca2ce8e167f854a5e0687db854f268")
else
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v$(version)/ultralight-sdk-$(version)-linux-x64.7z", {version = function(version)
if version:endswith("beta") then
return version .. "/ultralight-sdk-" .. version:sub(1, -6) .. "b-linux-x64.7z"
else
return version .. "/ultralight-sdk-" .. version .. "-linux-x64.7z"
end
end})
--add_versions("1.3.0", "1de6298b5ed3c5e0c22ac27e0e30fcb0ba6d195467a58ee44ef4e13dd1a6d352")
add_versions("1.4.0-beta", "1a72c567f2a33b5d6f7ba2cb253d39a78730bbe316ee5649e5e697e0e4b6ca1b")
end
elseif is_host("macosx") then
if os.arch() == "arm64" then
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v$(version)/ultralight-sdk-$(version)-mac-x64.7z", {version = function(version)
if version:endswith("beta") then
return version .. "/ultralight-sdk-" .. version:sub(1, -6) .. "b-mac-x64.7z"
else
return version .. "/ultralight-sdk-" .. version .. "-mac-x64.7z"
end
end})
add_versions("1.4.0-beta", "3b8c71cf8e403738dcdb12cacc233838c168d48322c31d40ec1c6fcaa761a016")
else
add_urls("https://github.com/ultralight-ux/Ultralight/releases/download/v$(version)/ultralight-sdk-$(version)-mac-x64.7z", {version = function(version)
if version:endswith("beta") then
return version .. "/ultralight-sdk-" .. version:sub(1, -6) .. "b-mac-x64.7z"
else
return version .. "/ultralight-sdk-" .. version .. "-mac-x64.7z"
end
end})
--add_versions("1.3.0", "bbf81ed456a617a60a19e9a76946e4479d5bac877f859005c50f66e9ec3c77a2")
add_versions("1.4.0-beta", "ac2abd395a5080d35d36a482b7c8e2f4e7bb89bfb6705d35ec07d9dcb4528fa7")
end
end

add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})

on_install("windows|x64", "linux|x86_64", "macosx|x86_64", function (package)
on_install("windows|x64", "linux", "macosx", function (package)
if package:is_plat("linux") then
if linuxos.name() ~= "ubuntu" and linuxos.name() ~= "debian" or (linuxos.version():major() < 9 and linuxos.version():minor() < 5) then
print("Ultralight is officially supported on Ubuntu/Debian 9.5+. use it at your own risks")
Expand Down

0 comments on commit afc9a61

Please sign in to comment.