feat: pipeline to create a full mac app
This commit is contained in:
17
priv/desktop/macos/launcher.sh.eex
Normal file
17
priv/desktop/macos/launcher.sh.eex
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Launcher for <%= name %> (<%= identifier %>).
|
||||
# Generated by mix bds.bundle.macos — do not edit inside the .app.
|
||||
#
|
||||
# Resolves the bundle's own location and execs the embedded Elixir release.
|
||||
# wxWidgets dylibs live in ../Frameworks and are referenced via @loader_path, so
|
||||
# the app is self-contained regardless of where the BEAM executable runs from.
|
||||
set -e
|
||||
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
APP_CONTENTS="$(cd "$HERE/.." && pwd)"
|
||||
RELEASE_ROOT="$APP_CONTENTS/Resources/rel"
|
||||
|
||||
# Belt-and-suspenders fallback for dyld (primary resolution is @loader_path).
|
||||
export DYLD_FALLBACK_LIBRARY_PATH="$APP_CONTENTS/Frameworks:${DYLD_FALLBACK_LIBRARY_PATH:-}"
|
||||
|
||||
exec "$RELEASE_ROOT/bin/<%= release_name %>" start
|
||||
Reference in New Issue
Block a user