|
@@ -18,17 +18,17 @@ case "${TARGETED_DEVICE_FAMILY}" in
|
|
|
2)
|
|
2)
|
|
|
TARGET_DEVICE_ARGS="--target-device ipad"
|
|
TARGET_DEVICE_ARGS="--target-device ipad"
|
|
|
;;
|
|
;;
|
|
|
|
|
+ 3)
|
|
|
|
|
+ TARGET_DEVICE_ARGS="--target-device tv"
|
|
|
|
|
+ ;;
|
|
|
|
|
+ 4)
|
|
|
|
|
+ TARGET_DEVICE_ARGS="--target-device watch"
|
|
|
|
|
+ ;;
|
|
|
*)
|
|
*)
|
|
|
TARGET_DEVICE_ARGS="--target-device mac"
|
|
TARGET_DEVICE_ARGS="--target-device mac"
|
|
|
;;
|
|
;;
|
|
|
esac
|
|
esac
|
|
|
|
|
|
|
|
-realpath() {
|
|
|
|
|
- DIRECTORY="$(cd "${1%/*}" && pwd)"
|
|
|
|
|
- FILENAME="${1##*/}"
|
|
|
|
|
- echo "$DIRECTORY/$FILENAME"
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
install_resource()
|
|
install_resource()
|
|
|
{
|
|
{
|
|
|
if [[ "$1" = /* ]] ; then
|
|
if [[ "$1" = /* ]] ; then
|
|
@@ -70,7 +70,7 @@ EOM
|
|
|
xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
|
|
xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
|
|
|
;;
|
|
;;
|
|
|
*.xcassets)
|
|
*.xcassets)
|
|
|
- ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH")
|
|
|
|
|
|
|
+ ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
|
|
|
XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
|
|
XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
|
|
|
;;
|
|
;;
|
|
|
*)
|
|
*)
|
|
@@ -93,7 +93,7 @@ then
|
|
|
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
|
|
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
|
|
|
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
|
|
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
|
|
|
while read line; do
|
|
while read line; do
|
|
|
- if [[ $line != "`realpath $PODS_ROOT`*" ]]; then
|
|
|
|
|
|
|
+ if [[ $line != "${PODS_ROOT}*" ]]; then
|
|
|
XCASSET_FILES+=("$line")
|
|
XCASSET_FILES+=("$line")
|
|
|
fi
|
|
fi
|
|
|
done <<<"$OTHER_XCASSETS"
|
|
done <<<"$OTHER_XCASSETS"
|