Index: Jamrules =================================================================== --- Jamrules (revision 1353) +++ Jamrules (working copy) @@ -44,7 +44,8 @@ actions OSXApp { $(RM) $(<) macosx/build/HandBrake.app && \ - ( cd macosx && \ + ( cd macosx && \ + ./plist-generator.rb "$(FULL_PATH)" "$(HB_VERSION)" "$(HB_BUILD)" &&\ defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleGetInfoString '"$(HB_VERSION)"' &&\ defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleShortVersionString '"$(HB_VERSION)"' &&\ defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleVersion '"$(HB_BUILD)"' &&\ Index: macosx/plist-generator.rb =================================================================== --- macosx/plist-generator.rb (revision 0) +++ macosx/plist-generator.rb (revision 0) @@ -0,0 +1,59 @@ +#! /usr/bin/ruby + +# Dynamically generates the macosx/HandBrake.plist file at build-time. + +# Passed arguments in the order: path/to/trunk/dir/ HB_VERSION HB_BUILD +full_path = ARGV[0] +hb_version = ARGV[1] +hb_build = ARGV[2] + +# Bundle Development Region +`defaults write #{full_path}/macosx/HandBrake-test CFBundleDevelopmentRegion '"English"'` + +# Bundle Display Name +`defaults write #{full_path}/macosx/HandBrake-test CFBundleDisplayName '"HandBrake"'` + +# Bundle Executable +`defaults write #{full_path}/macosx/HandBrake-test CFBundleExecutable '"HandBrake"'` + +# Bundle Get Info String +`defaults write #{full_path}/macosx/HandBrake-test CFBundleGetInfoString '"#{hb_version}"'` + +# Bundle Icon File +`defaults write #{full_path}/macosx/HandBrake-test CFBundleIconFile '"HandBrake"'` + +# Bundle Identifier +`defaults write #{full_path}/macosx/HandBrake-test CFBundleIdentifier '"org.m0k.handbrake"'` + +# Bundle Info Dictionary Version +`defaults write #{full_path}/macosx/HandBrake-test CFBundleInfoDictionaryVersion '"6.0"'` + +# Bundle Name +`defaults write #{full_path}/macosx/HandBrake-test CFBundleName '"HandBrake"'` + +# Bundle Package Type +`defaults write #{full_path}/macosx/HandBrake-test CFBundlePackageType '"APPL"'` + +# Bundle Short Version String +`defaults write #{full_path}/macosx/HandBrake-test CFBundleShortVersionString '"#{hb_version}"'` + +# Bundle Signature +`defaults write #{full_path}/macosx/HandBrake-test CFBundleSignature '"HB##"'` + +# Bundle Version +`defaults write #{full_path}/macosx/HandBrake-test CFBundleVersion '"#{hb_build}"'` + +# Human Readable Copyright +`defaults write #{full_path}/macosx/HandBrake-test NSHumanReadableCopyright '"HandBrake Devs"'` + +# Main NIB File +`defaults write #{full_path}/macosx/HandBrake-test NSMainNibFile '"MainMenu"'` + +# Principal Class +`defaults write #{full_path}/macosx/HandBrake-test NSPrincipalClass '"NSApplication"'` + +# Sparkle Update Feed URL +`defaults write #{full_path}/macosx/HandBrake-test SUFeedURL '"http://handbrake.fr/appcast.xml"'` + +# Make the plist xml, instead of the default binary. +`plutil -convert xml1 #{full_path}/macosx/HandBrake-test.plist` Property changes on: macosx/plist-generator.rb ___________________________________________________________________ Name: svn:executable + *