Skip to content

Commit

Permalink
fix install-lua doesn't copy over the files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nats-ji committed Jun 26, 2023
1 parent 67731ca commit 97ee81d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ function InstallLua()
local install_path = config.get("installpath")
cprint("${green bright}Installing CET Mod Manager Lua ..")
check_game_installation(install_path)
os.run([[xcopy "%s" "%s" /s /e /y /q]], path.translate("scripts"), path.translate(path.join(install_path, "bin/x64/plugins/cyber_engine_tweaks/mods/cet_mod_manager"))) -- Don't use os.cp(), it will remove the contents from the destination directory.
local from_path = path.translate("./scripts")
local to_path = path.translate(path.join(install_path, "bin/x64/plugins/cyber_engine_tweaks/mods/cet_mod_manager"))
os.execv("xcopy", {from_path, to_path, "/s", "/e", "/y", "/q"}) -- Don't use os.cp(), it will remove the contents from the destination directory.
cprint("CET Mod Manager Lua installed at: ${underline}%s", path.translate(path.join(install_path, "bin/x64/plugins/cyber_engine_tweaks/mods/cet_mod_manager")))
end

Expand Down

0 comments on commit 97ee81d

Please sign in to comment.