From 70eb86dff8ea87fce7f95a748779c498f48929b2 Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Mon, 30 Mar 2020 22:10:38 +0200 Subject: [PATCH] Fix builder --- src/raylua_builder.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/raylua_builder.lua b/src/raylua_builder.lua index 96d6dec..d0e9967 100644 --- a/src/raylua_builder.lua +++ b/src/raylua_builder.lua @@ -72,10 +72,12 @@ if t == "directory" then local output = arg[2] if not output then + output = input_path + if ffi.os == "Windows" then - output = output .. ".exe" + output = input_path .. ".exe" else - output = output .. ".elf" + output = input_path .. ".elf" end end @@ -146,7 +148,7 @@ elseif t == "file" then local source = assert(io.open(self_path, "rb"), "Can't open self file.") local input = assert(io.open(input_path, "rb"), "Can't open zip file.") - append_file_offset(output, source, input) + append_file_offset(dest, source, input) dest:close() source:close()