Create a MacOS X App Bundle Using MacPorts: Difference between revisions

Line 110: Line 110:
* Install the MacPorts Octave DMG, which as placed on the MacOS X Desktop.  Installing the DMG will create a new {{Codeline|<nowiki>/opt</nowiki>}} directory containing Octave and all its build and run-time dependencies. To avoid conflict with the original MacPorts installation.
* Install the MacPorts Octave DMG, which as placed on the MacOS X Desktop.  Installing the DMG will create a new {{Codeline|<nowiki>/opt</nowiki>}} directory containing Octave and all its build and run-time dependencies. To avoid conflict with the original MacPorts installation.
* Place the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]] in the same directory as the App bundle template created using Platypus.
* Place the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]] in the same directory as the App bundle template created using Platypus.
* Populate the App bundle by running the script below from the directory containing the Platypus App bundle template and the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]].
* Populate the App bundle by running the script below from the directory containing the App bundle template and the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]].  The {{Codeline|launch_octave}} script isn't needed if the App bundle was created using Platypus.
  <nowiki>#! /bin/sh
  <nowiki>#! /bin/sh
VERSION=3.7.0+
VERSION=3.7.0+
Line 118: Line 118:
cp -pRf ${MACPORTS_PREFIX} ${FULLAPP}/Contents/Resources/.
cp -pRf ${MACPORTS_PREFIX} ${FULLAPP}/Contents/Resources/.
rm ${FULLAPP}/Contents/Resources/bin/octave
rm ${FULLAPP}/Contents/Resources/bin/octave
cp launch_octave ${FULLAPP}/Contents/Resources/bin/.
cp octave ${FULLAPP}/Contents/Resources/bin/.
cp octave ${FULLAPP}/Contents/Resources/bin/.
mkdir ${FULLAPP}/Contents/Resources/Applications
mkdir ${FULLAPP}/Contents/Resources/Applications
364

edits