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

Jump to navigation Jump to search
No edit summary
Line 169: Line 169:


# create a nice dmg disc image with create-dmg (MIT License)
# create a nice dmg disc image with create-dmg (MIT License)
if [ "build_dmg" == "y" ]; then
if [ "$build_dmg" == "y" ]; then
# get make-dmg from github
# get make-dmg from github
tmp_dir=$(mktemp -d /tmp/octave-XXXX)
tmp_dir=$(mktemp -d /tmp/octave-XXXX)
Line 175: Line 175:


# get background image
# get background image
curl https://raw.githubusercontent.com/schoeps/octave_installer/master/background.tiff -o background.tiff
curl https://raw.githubusercontent.com/schoeps/octave_installer/master/background.tiff -o "$tmp_dir/background.tiff"


# running create-dmg; this may issue warnings if run headless. However, the dmg
# running create-dmg; this may issue warnings if run headless. However, the dmg
Line 192: Line 192:
--add-file DEPENDENCIES "$install_dir/Contents/Resources/DEPENDENCIES" 415 300 \
--add-file DEPENDENCIES "$install_dir/Contents/Resources/DEPENDENCIES" 415 300 \
--disk-image-size 1250 \
--disk-image-size 1250 \
--background "../background.tiff" \
--background "$tmp_dir/background.tiff" \
"$dmg_dir/Octave-Installer.dmg" \
"$dmg_dir/Octave-Installer.dmg" \
"$install_dir"  
"$install_dir"  
44

edits

Navigation menu