Skip to main content
This page shows how to sign your macOS launcher, its helper apps and any custom libraries with Apple’s codesign tool.

Requirements

Compile your macOS launcher with builder.py. It creates the launcher app with the helper apps and CEF framework in this structure:
If your launcher includes custom libraries, put them in the right folder now, for example Launcher.app/Contents/MacOS/llama_wine. Note the path to the DirectGVR binaries for your Mac’s architecture (ARM or x64), for example /Users/<you>/direct/7.2.130/bin/macarm64/. Its bin folder has three .entitlements files you use when signing.

Sign the launcher

In Terminal, run these commands. Replace:
  • devid with the name of your code-signing certificate.
  • directbin with the path to the folder with the .entitlements files.
  • Every llama name with your launcher’s names and files.

Check the signature

If the app is signed correctly, the output ends with satisfies its Designated Requirement on any machine:

Execute permissions

These files need execute permission on every machine that runs the launcher:
  • Launcher.app/Contents/MacOS/Launcher
  • Launcher.app/Contents/Frameworks/Launcher Helper.app/MacOS/Launcher Helper
  • Launcher.app/Contents/Frameworks/Launcher Helper (GPU).app/MacOS/Launcher Helper (GPU)
  • Launcher.app/Contents/Frameworks/Launcher Helper (Renderer).app/MacOS/Launcher Helper (Renderer)
  • Launcher.app/Contents/Frameworks/Chromium Embedded Framework.framework