Skip to content

Instantly share code, notes, and snippets.

@fum1h1ro
Created September 20, 2023 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fum1h1ro/d9f348b4b4aba7b761f9a982616a32d5 to your computer and use it in GitHub Desktop.
Save fum1h1ro/d9f348b4b4aba7b761f9a982616a32d5 to your computer and use it in GitHub Desktop.
godot_build.sh
#!/bin/sh
scons platform=macos arch=arm64 module_mono_enabled=yes target=editor vulkan_sdk_path=$HOME/Developer/VulkanSDK/1.3.261.1
bin/godot.macos.editor.arm64.mono --headless --generate-mono-glue modules/mono/glue
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin
cp -r misc/dist/macos_tools.app ./Godot.app
mkdir -p Godot.app/Contents/MacOS
cp bin/godot.macos.editor.arm64.mono Godot.app/Contents/MacOS/Godot
cp -r bin/GodotSharp Godot.app/Contents/Resources
chmod +x Godot.app/Contents/MacOS/Godot
codesign --force --timestamp --options=runtime --entitlements misc/dist/macos/editor.entitlements -s - Godot.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment