Skip to content

Commit

Permalink
Merge pull request #51 from rayshader/build/fix-client-target
Browse files Browse the repository at this point in the history
build(Client): fix installation of plugin
  • Loading branch information
maximegmd authored Dec 21, 2024
2 parents 0ea6d45 + ca7e9cf commit 0ccb0cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions code/loader/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ else
return false
end
local stdout, stderr = os.iorunv("tasklist", {"/FI", "IMAGENAME eq Cyberpunk2077.exe"})
return #stdout >= 3

return string.find(stdout, "Cyberpunk2077.exe")
end

target("Cyberpunk2077")
set_kind("binary")
set_basename("Cyberpunk2077")
Expand All @@ -20,7 +21,7 @@ else
on_clean(function(target) end)
on_link(function(target) end)
on_install(function(target) end)
after_build(function(target)
after_build(function(target)
local targetdir = target:targetdir()
local clientdir = path.join(os.projectdir(), target:dep("Client"):targetdir())

Expand Down Expand Up @@ -62,7 +63,7 @@ else
on_clean(function(target) end)
on_link(function(target) end)
on_install(function(target) end)
after_build(function(target)
after_build(function(target)
local targetdir = target:targetdir()
local clientdir = path.join(os.projectdir(), target:dep("Client"):targetdir())

Expand All @@ -84,7 +85,7 @@ else
end

os.mkdir(modPath)

local client_dll_path = path.join(clientdir, "CyberpunkMP.dll")
local symlink_path = path.join(modPath, "CyberpunkMP.dll")

Expand Down

0 comments on commit 0ccb0cf

Please sign in to comment.