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

no edit summary
No edit summary
No edit summary
Line 42: Line 42:


* Download the App Boilerplate from Savannah's task tracker.
* Download the App Boilerplate from Savannah's task tracker.
*# To be placed on Savannah soon
*# To be placed on Savannah soon.
*# An itemized list of the Boilerplate's contents is below.
*#* Boilerplate
*#** Contents
*#*** Info.plist
*#*** MacOS
*#**** Octave
*#*** Resources
*#**** appIcon.icns
*#**** AppSettings.plist
*#**** bin
*#***** octave
*#**** script
* Create a copy of the DMG's contents
* Create a copy of the DMG's contents
*# {{Codeline|<nowiki>sudo mv /opt /opt-save</nowiki>}}
*# Save the original MacPorts installation.
*# Install the DMG.
*#* {{Codeline|<nowiki>sudo mv /opt /opt-save</nowiki>}}
*# Move the new {Codeline|<nowiki>/opt</nowiki>}} to the directory containing the App Boilerplate.
*# Install the DMG.  This will create a new {{Codeline|<nowiki>/opt</nowiki>}} directory.
*# {{Codeline|<nowiki>sudo mv /opt-save /opt</nowiki>}}
*# Move the new {{Codeline|<nowiki>/opt</nowiki>}} to the directory containing the App Boilerplate.
* Create the App bundle
*# Restore the MacPorts installation
 
*#* {{Codeline|<nowiki>sudo mv /opt-save /opt</nowiki>}}
  <nowiki>VERSION=3.7.0
* Create the App bundle using the shell script below. This script produces an App bundle named {{Codeline|<nowiki>Octave-3.7.0.app</nowiki>}}.
  <nowiki>#!/bin/sh -e
VERSION=3.7.0
APP=Octave
APP=Octave
FULLAPP="${APP}-${VERSION}.app"
FULLAPP="${APP}-${VERSION}.app"
364

edits