comparison deploy/osx/deploy.sh @ 567:dd344309667f

Some work on macOS deployment - trying to get this one working with sandboxing. File saving is currently not working (temporary file write failing perhaps?)
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 19 Feb 2019 17:46:01 +0000
parents 77754355b37a
children fe1a77d4aeaa
comparison
equal deleted inserted replaced
566:dfd28360f600 567:dd344309667f
26 [0-9].[0-9]) bundleVersion="$stem".0 ;; 26 [0-9].[0-9]) bundleVersion="$stem".0 ;;
27 [0-9].[0-9].[0-9]) bundleVersion="$stem" ;; 27 [0-9].[0-9].[0-9]) bundleVersion="$stem" ;;
28 *) echo "Error: Version stem $stem (of version $version) is neither two- nor three-part number"; exit 1 ;; 28 *) echo "Error: Version stem $stem (of version $version) is neither two- nor three-part number"; exit 1 ;;
29 esac 29 esac
30 30
31 if file "$source/Contents/MacOS/$app" | grep -q script; then
32 echo
33 echo "Executable is already a script, leaving it alone."
34 else
35 echo
36 echo "Moving aside executable, adding script."
37
38 mv "$source/Contents/MacOS/$app" "$source/Contents/MacOS/$app.bin" || exit 1
39 cp "deploy/osx/$app.sh" "$source/Contents/MacOS/$app" || exit 1
40 chmod +x "$source/Contents/MacOS/$app"
41 fi
42
43 echo 31 echo
44 echo "Copying in plugins from pyin/pyin.dylib and chp/chp.dylib." 32 echo "Copying in plugins from libpyin.dylib and libchp.dylib."
45 echo "(make sure they're present, up-to-date and compiled with optimisation!)"
46 33
47 cp libpyin.dylib "$source/Contents/Resources/pyin.dylib" 34 cp libpyin.dylib "$source/Contents/Resources/pyin.dylib"
48 cp libchp.dylib "$source/Contents/Resources/chp.dylib" 35 cp libchp.dylib "$source/Contents/Resources/chp.dylib"
49 36
50 echo 37 echo
81 68
82 mkdir "$volume" || exit 1 69 mkdir "$volume" || exit 1
83 70
84 ln -s /Applications "$volume"/Applications 71 ln -s /Applications "$volume"/Applications
85 cp README.md "$volume/README.txt" 72 cp README.md "$volume/README.txt"
86 cp README.OSC "$volume/README-OSC.txt"
87 cp COPYING "$volume/COPYING.txt" 73 cp COPYING "$volume/COPYING.txt"
88 cp CHANGELOG "$volume/CHANGELOG.txt" 74 cp CHANGELOG "$volume/CHANGELOG.txt"
89 cp CITATION "$volume/CITATION.txt" 75 cp CITATION "$volume/CITATION.txt"
90 cp -rp "$source" "$target" 76 cp -rp "$source" "$target"
91 77