Skip to content

Commit

Permalink
alcatraz: add package (#5392)
Browse files Browse the repository at this point in the history
* alcatraz: add package

* zydis: improve limit plat

* alcatraz: limit plat
  • Loading branch information
star-hengxing authored Oct 2, 2024
1 parent 8863672 commit 6b991ef
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions packages/a/alcatraz/xmake.lua
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion packages/z/zydis/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit 6b991ef

Please sign in to comment.