Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.05 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.05 KB

symlink-app

This scripts packs executables and dynamic libraries into a Mac OS application bundle.

It's conforms to the rules defined in Apple TechNote 2206 and was derived from this discussion.

How to use:

  1. Copy your files into the /Contents/Resources directory of your app. Create nested directories if you like. This script will process them correctly.

  2. Run pwsh Symlink-App.ps1 /path/to/my.app. This script:

    1. Finds all executables and copies them into Contents/MacOS.
    2. Finds all .dylib files and copies them into Contents/Frameworks.
    3. Leaves a dynamic link from each original file location in /Contents/Resources to its new location.

pwsh is Powershell, and can be installed with brew install powershell. I first tried to implement this script in zsh, but my application has a space in its name, and simple things like ${path:t:e} failed to parse the file extension.