Godot Engine

Godot Engine

SapphireMH May 28, 2016 @ 12:03am
Exporting in mac OSX
Hello,

Im trying to do a test export on max osx 10.11 el capitan running within vmware.
I have compiled custom engines which are named:
godot.osx.tools.32
godot.osx.tools.64
godot.osx.opt.32
godot.osx.opt.64

however, when I click on export within godot engine and under release I go to browse files, it asks for a .zip, how would I acquire a .zip with my custom compiled engines?

if I remove the filter so i can select all files and then select the opt one, the exported .app refuses to work, any help will be very much apreciated.
< >
Showing 1-12 of 12 comments
Akien  [developer] May 28, 2016 @ 6:42am 
That's a very good question, and it's not well documented yet.

For the editor ("tools" binaries), I just added some instructions in the Compiling for OSX page[docs.godotengine.org].

For the export templates, you should basically do the same but with the "tools/osx_template.app" folder.

Here's how we generate the official templates:

# OSX cp -r godot/tools/osx_template.app . mkdir osx_template.app/Contents/MacOS cp bin/godot.osx.opt.32 osx_template.app/Contents/MacOS/godot_osx_release.32 cp bin/godot.osx.opt.debug.32 osx_template.app/Contents/MacOS/godot_osx_debug.32 cp bin/godot.osx.opt.64 osx_template.app/Contents/MacOS/godot_osx_release.64 cp bin/godot.osx.opt.debug.64 osx_template.app/Contents/MacOS/godot_osx_debug.64 chmod +x osx_template.app/Contents/MacOS/godot_osx* zip -q -9 -r osx.zip osx_template.app rm -rf osx_template.app

See also this script[docs.godotengine.org] but it needs some update.
Last edited by Akien; May 28, 2016 @ 6:46am
SapphireMH May 28, 2016 @ 2:10pm 
thank you for your answer, the exported .app now actually works :)
SapphireMH Aug 31, 2017 @ 12:15pm 
hey there, me again.

In godot version 2.1.4 [Stable] did the "godot/tools/osx_template.app" get moved to a new location or is there now a new way to make the template?
Akien  [developer] Sep 2, 2017 @ 4:39am 
It's in
misc/dist/osx_template.app
now.
SapphireMH Sep 28, 2020 @ 11:17am 
Hi @akien,

Are these instructions still viable?

now that the files use .x86_64 as extension we cant get the templates working anymore
Akien  [developer] Sep 29, 2020 @ 6:56am 
If you have .x86_64 as extension, that's a Linux build, not macOS.

For macOS the above extensions are still correct but nowadays you would not bother with 32-bit support, so there's only the .64 files to build and copy.

Here's how it's done in the official build scripts for Godot 3.2.x:
https://github.com/godotengine/godot-build-scripts/blob/279085ccce41baf845af7e8f47713a558bf08225/build-release.sh#L148-L157
SapphireMH Sep 29, 2020 @ 1:42pm 
the following command:

"scons platform=osx arch=x86_64 --jobs=$(sysctl -n hw.logicalcpu)"

as stated in the documentation at: https://docs.godotengine.org/en/stable/development/compiling/compiling_for_osx.html

generates binaries with an .x86_64 extension

this is done on a mac running macos 15 catalina.
SapphireMH Apr 23, 2021 @ 12:00am 
I was asked if this ever got resolved, so here are my most recent docs for how we make the mac templates:

mkdir osx_template.app/Contents/MacOS
cp godot.osx.opt.debug.x86_64 osx_template.app/Contents/MacOS/godot_osx_debug.64
cp godot.osx.opt.x64_86 osx_template.app/Contents/MacOS/godot_osx_release.64
chmod +x osx_template.app/Contents/MacOS/godot_osx*
zip -r9 http://osx.zip osx_template.app/
rm -rf osx_template.app

And the zip can then be used in the exporting process
Sersch Apr 28, 2021 @ 9:50am 
You could create a short Guide from your last posting if you feel like it. Things tend to disappear in the depths of forums and I bet MacOS developers would find this useful.
SapphireMH Apr 28, 2021 @ 9:57am 
That's a good suggestion, and very true too.

At some point I'll create a guide from my notes.
Akien  [developer] Apr 29, 2021 @ 10:05am 
The best would be to add the relevant section to the existing docs: https://github.com/godotengine/godot-docs/blob/master/development/compiling/compiling_for_osx.rst

It's just missing a few lines on how to build and package export templates.
Akien  [developer] May 11, 2021 @ 2:42am 
Well I finally took the time needed to add the relevant docs: https://github.com/godotengine/godot-docs/pull/4904
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: May 28, 2016 @ 12:03am
Posts: 12