mac-make.sh (877B)
1 # script to build a jar file to run PmDefaults from the command line on OS X 2 # (This is for debugging. Normally, you would use XCode to build PmDefaults.app.) 3 4 # Compile the java Portidi interface classes. 5 javac jportmidi/*.java 6 7 # Compile the pmdefaults application. 8 javac -classpath . pmdefaults/*.java 9 10 # Temporarily copy the portmusic_logo.png file here to add to the jar file. 11 cp pmdefaults/portmusic_logo.png . 12 13 # Create a directory to hold the distribution. 14 mkdir mac-osx 15 16 # Copy the interface DLL to the distribution directory. 17 cp ../Release/libpmjni.dylib mac-osx 18 19 # Create a java archive (jar) file of the distribution. 20 jar cmf pmdefaults/manifest.txt mac-osx/pmdefaults.jar pmdefaults/*.class portmusic_logo.png jportmidi/*.class 21 22 # Clean up the temporary image file now that it is in the jar file. 23 rm portmusic_logo.png 24 25 echo "You now have a jar file in mac-osx" 26