Getting the following message in the editor console when trying to bundle on Linux.
Bundling 'Linux Application...' failed: prelude.lua:364 Failed to show URI:file:/home/toshiba/Documents/tiny-racing/x86_64-linux/
Similar happens when trying to bundle Windows build.
It looks like the last step is failing when the bundle dialog tries to open the target location:
if editor.platform:sub(-#"win32") == "win32" then
editor.execute("cmd.exe", "/c", "mkdir", output_directory:gsub("/", "\\"), {reload_resources = false})
else
editor.execute("mkdir", "-p", output_directory, {reload_resources = false})
end
end
editor.bob(bob_opts, "resolve", "build", "bundle")
if editor.prefs.get("bundle.open-output-directory") then
editor.open_external_file(output_directory)
end
end
-- Bundling: command
function editor.bundle.command(label, id, fn, rest)
local result = rest or {}
result.label = label
result.id = id
result.locations = {"Bundle"}
What if you disable the option to open the bundle directory in preferences? Do you get a working bundle or is there something else going wrong before that?
2 Likes
Thanks, that was the issue. The bundle itself is built as expected.