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

Line 76: Line 76:
* 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 Platypus App bundle template and the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]].
  <nowiki>#! /bin/sh
  <nowiki>#! /bin/sh
VERSION=3.7.0
VERSION=3.7.0+
APP=Octave
APP=Octave
FULLAPP="${APP}-${VERSION}.app"
FULLAPP="${APP}-${VERSION}.app"
Line 89: Line 89:
sudo mv /opt-save /opt</nowiki>
sudo mv /opt-save /opt</nowiki>


The Octave App bundle for MacOS X is now ready to run.
The Octave App bundle for MacOS X is now ready to run. The bundled Octave may be run from a terminal command line using the command below.
<nowiki>/Applications/Octave-3.7.0+.app/Contents/Resources/bin/octave</nowiki>
To create a symbolic link in your path that runs the bundled Octave, us the command below.
<nowiki>ln -s /Applications/Octave-3.7.0+.app/Contents/Resources/bin/octave /usr/local/bin/octave</nowiki>
If the link does not work, be sure that {{Codeline|<nowiki>/usr/local/bin</nowiki>}} is in your shell path.  If it is not in your path, it may be added by editing {{Codeline|<nowiki>~/.profile</nowiki>}}. Just add the line below to the end of the file.
<nowiki>export PATH="${PATH}:/usr/local/bin"</nowiki>


=Problems, Restrictions, and Annoyances of the App Bundle=
=Problems, Restrictions, and Annoyances of the App Bundle=
364

edits