Try new osx code
@@ -8,12 +8,12 @@ fi
if [ $(uname) == Darwin ]; then
pkgutil --expand firefox.pkg firefox
- echo ${pwd}
- echo "HERE"
- ls -lha
- cpio --list --extract -I "firefox/Payload"
- echo "HERE"
- ls -lha
- echo "HERE"
- # cp usr/local/bin/* ${PREFIX}/bin/
+ cpio -i -I firefox/Payload
+ cp -rf Firefox.app $PREFIX/
+ APP=$PREFIX/bin/firefox
+ cat <<EOF >$APP
+ #!/bin/bash
+ $PREFIX/Firefox.app/Contents/MacOS/firefox "\$@"
+ EOF
+ chmod +x $APP
fi
