alcatraz: add package (#5392)

* alcatraz: add package

* zydis: improve limit plat

* alcatraz: limit plat
pull/5394/head
star9029 2 months ago committed by GitHub
parent 88636725f2
commit 6b991efd88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 30
      packages/a/alcatraz/xmake.lua
  2. 2
      packages/z/zydis/xmake.lua

@ -0,0 +1,30 @@
package("alcatraz")
set_kind("binary")
set_homepage("https://github.com/weak1337/Alcatraz")
set_description("x64 binary obfuscator")
set_urls("https://github.com/weak1337/Alcatraz.git", {submodules = false})
add_versions("2023.07.14", "739e65ebadaeb3f8206fb2199700725331465abb")
add_deps("asmjit", "zydis")
on_install("@windows", function (package)
io.replace("Alcatraz/obfuscator/obfuscator.cpp", "#include <iostream>",
"#include <iostream>\n#include <bit>", {plain = true})
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
add_requires("asmjit", "zydis")
set_languages("c++20")
target("alcatraz")
set_kind("binary")
add_files("Alcatraz/**.cpp")
add_packages("asmjit", "zydis")
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
os.vrun("alcatraz")
end)

@ -36,7 +36,7 @@ package("zydis")
end
end)
on_install("windows", "macosx", "linux", "bsd", "cross", "mingw", "android", function (package)
on_install("!wasm and !iphoneos", function (package)
if package:is_plat("mingw") and package:version():ge("3.2.1") then
local rc_str = io.readfile("resources/VersionInfo.rc", {encoding = "utf16le"})
io.writefile("resources/VersionInfo.rc", rc_str, {encoding = "utf8"})

Loading…
Cancel
Save