diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-23 02:07:43 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-23 02:07:43 +0200 |
| commit | 332003cd136f39c1f42d344efecebaf976c5955b (patch) | |
| tree | 2b2ec3331c85186fb9093a9dad4710854c498c98 /CMake/macOS-bundle-wrapper.in | |
| parent | f357f4311c6faedcb87f40144b83e2219538386c (diff) | |
Create macOS "bundle wrapper" scripts (#115)
These scripts must be installed side by side with the bundle with the
same name and run the executable inside the bundle when executed.
Diffstat (limited to 'CMake/macOS-bundle-wrapper.in')
| -rw-r--r-- | CMake/macOS-bundle-wrapper.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CMake/macOS-bundle-wrapper.in b/CMake/macOS-bundle-wrapper.in new file mode 100644 index 000000000..2f31e4886 --- /dev/null +++ b/CMake/macOS-bundle-wrapper.in @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Run the executable of a macOS bundle for the Fast Light Tool Kit (FLTK). +# +# Copyright 1998-2020 by Bill Spitzak and others. +# +# This library is free software. Distribution and use rights are outlined in +# the file "COPYING" which should have been included with this file. If this +# file is missing or damaged, see the license at: +# +# https://www.fltk.org/COPYING.php +# +# Please see the following page on how to report bugs and issues: +# +# https://www.fltk.org/bugs.php +# +# +# Install this script side by side with the macOS bundle with the same name: +# +# - dir/prog.app macOS bundle (directory) +# - dir/prog this script: runs the executable 'prog' inside the bundle +# +prog="`basename \"$0\"`" +dir="`dirname \"$0\"`" +exec "$dir/$prog.app/Contents/MacOS/$prog" "$@" |
