Fix builder
This commit is contained in:
parent
770c989a8b
commit
70eb86dff8
|
@ -72,10 +72,12 @@ if t == "directory" then
|
||||||
local output = arg[2]
|
local output = arg[2]
|
||||||
|
|
||||||
if not output then
|
if not output then
|
||||||
|
output = input_path
|
||||||
|
|
||||||
if ffi.os == "Windows" then
|
if ffi.os == "Windows" then
|
||||||
output = output .. ".exe"
|
output = input_path .. ".exe"
|
||||||
else
|
else
|
||||||
output = output .. ".elf"
|
output = input_path .. ".elf"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -146,7 +148,7 @@ elseif t == "file" then
|
||||||
local source = assert(io.open(self_path, "rb"), "Can't open self file.")
|
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.")
|
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()
|
dest:close()
|
||||||
source:close()
|
source:close()
|
||||||
|
|
Loading…
Reference in New Issue