summaryrefslogtreecommitdiff
path: root/tools/osx_packaging/app_build.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/osx_packaging/app_build.rb')
-rwxr-xr-xtools/osx_packaging/app_build.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/osx_packaging/app_build.rb b/tools/osx_packaging/app_build.rb
new file mode 100755
index 0000000000..965d87003d
--- /dev/null
+++ b/tools/osx_packaging/app_build.rb
@@ -0,0 +1,22 @@
+#!/usr/bin/ruby
+
+# Ruby script for pulling together a MacOSX app bundle.
+
+if File.exist?("lib") then
+ Dir.foreach("lib") {|x| unless x[0] == 46 then File.delete("lib/"+x) end}
+else
+ Dir.mkdir "lib"
+end
+
+result = `otool -L ../../gtk2_ardour/ardour.bin`
+results = result.split("\n")
+results.delete_at(0)
+results.each do |s|
+ s = s.split[0]
+ # exclude frameworks, system libraries, X11 libraries, and libjack.
+ unless s =~ /System|\/usr\/lib|\/usr\/X11R6|libjack/ then
+ `cp #{s} lib`
+ end
+end
+
+`/usr/local/bin/platypus -a 'Ardour2' -t 'Shell' -o 'None' -u 'Paul Davis' -i '/bin/sh' -V '1.0' -s 'ArDr' -I 'org.ardour.Ardour2' -f 'bin' -f 'lib' -f 'Ardour2.icns' -f 'MenuBar.nib' -f 'ProgressWindow.nib' -f 'init' -f 'openDoc' 'script' 'Ardour2.app'` \ No newline at end of file