Skip to content

Commit

Permalink
update install
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Dec 9, 2024
1 parent 4d70ad9 commit c322404
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/cli/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ target("cli")
add_installfiles("$(projectdir)/../xmake/(templates/**)")
add_installfiles("$(projectdir)/../scripts/xrepo.bat")
add_installfiles("$(projectdir)/../scripts/xrepo.ps1")
set_prefixdir("/", {bindir = "/"})
after_install(function (target)
os.rm(target:libdir())
os.rm(target:includedir())
os.cp(path.join(os.programdir(), "winenv"), target:installdir())
end)
else
add_installfiles("$(projectdir)/../(xmake/**.lua)", {prefixdir = "share"})
add_installfiles("$(projectdir)/../(xmake/scripts/**)", {prefixdir = "share"})
Expand Down

0 comments on commit c322404

Please sign in to comment.