copy-jsshell.sh 798 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. if test -z ${GECKO_OBJDIR}; then
  4. echo "Error: GECKO_OBJDIR not set!"
  5. exit 1
  6. fi
  7. if test "${ACTION}" != "clean"; then
  8. echo "Copying files from ${GECKO_OBJDIR}/dist/bin"
  9. mkdir -p $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks
  10. cp ${GECKO_OBJDIR}/mozglue/build/libmozglue.dylib $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks
  11. cp ${GECKO_OBJDIR}/config/external/nss/libnss3.dylib $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks
  12. if test ${ARCHS} == "armv7"; then
  13. for x in $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks/*.dylib; do
  14. echo "Signing $x"
  15. /usr/bin/codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" --preserve-metadata=identifier,entitlements,resource-rules $x
  16. done
  17. fi
  18. fi