diff options
author | fuzzard <fuzzard@users.noreply.github.com> | 2020-01-15 20:02:17 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 20:02:17 +1000 |
commit | 4db5f328d1c1ede85169eadf4fec4c1459a6efa5 (patch) | |
tree | bb5df4ab8a09e65a54b826802cdc780964d2f20b | |
parent | e990031d739eaccf9472859c5d74d91a06d241f3 (diff) | |
parent | ab339d7f3ab560e37e72fd8efc88f912614904ae (diff) |
Merge pull request #17171 from kambala-decapitator/leia-macos-fix-copyfiles
[Leia][macos] fix copying Estuary resources to app package
-rwxr-xr-x | tools/darwin/Support/CopyRootFiles-osx.command | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/tools/darwin/Support/CopyRootFiles-osx.command b/tools/darwin/Support/CopyRootFiles-osx.command index fa4f5d5ee0..76250ea035 100755 --- a/tools/darwin/Support/CopyRootFiles-osx.command +++ b/tools/darwin/Support/CopyRootFiles-osx.command @@ -19,38 +19,41 @@ SYNCSKIN="rsync -aq --exclude .git* --exclude CVS* --exclude .svn* --exclude .cv # rsync command for including everything but the skins ADDONSYNC="rsync -aq --no-links --exclude .git* --exclude .DS_Store* --exclude addons/skin.estuary --exclude addons/skin.estouchy" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/addons" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/media" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/system" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/userdata" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/media" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/tools/darwin/runtime" -mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/extras/user" - -${SYNC} "$SRCROOT/LICENSE.md" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/" -${SYNC} "$SRCROOT/privacy-policy.txt" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" -${SYNC} "$SRCROOT/xbmc/platform/darwin/Credits.html" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/" -${SYNC} "$SRCROOT/tools/darwin/runtime" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/tools/darwin" -${ADDONSYNC} "$SRCROOT/addons" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" -${SYNC} "$SRCROOT/media" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" -${SYNCSKIN} "$SRCROOT/addons/skin.estuary" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/addons" -${SYNC} "$SRCROOT/addons/skin.estuary/extras" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/addons/skin.estuary" -${SYNC} "$SRCROOT/addons/skin.estuary/resources" "$TARGET_BUILD_DIR/$TARGET_NAME/AppData/AppHome/addons/skin.estuary" -${SYNCSKIN} "$SRCROOT/addons/skin.estouchy" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/addons" -${SYNC} "$SRCROOT/addons/skin.estouchy/background" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/addons/skin.estouchy" -${SYNC} "$SRCROOT/addons/skin.estouchy/resources" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/addons/skin.estouchy" -${SYNC} "$SRCROOT/system" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" -${SYNC} "$SRCROOT/userdata" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" +BASE_TARGET_PATH="$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources" +TARGET_PATH="$BASE_TARGET_PATH/$APP_NAME" + +mkdir -p "$TARGET_PATH" +mkdir -p "$TARGET_PATH/addons" +mkdir -p "$TARGET_PATH/media" +mkdir -p "$TARGET_PATH/system" +mkdir -p "$TARGET_PATH/userdata" +mkdir -p "$TARGET_PATH/media" +mkdir -p "$TARGET_PATH/tools/darwin/runtime" +mkdir -p "$TARGET_PATH/extras/user" + +${SYNC} "$SRCROOT/LICENSE.md" "$BASE_TARGET_PATH" +${SYNC} "$SRCROOT/privacy-policy.txt" "$TARGET_PATH" +${SYNC} "$SRCROOT/xbmc/platform/darwin/Credits.html" "$BASE_TARGET_PATH" +${SYNC} "$SRCROOT/tools/darwin/runtime" "$TARGET_PATH/tools/darwin" +${ADDONSYNC} "$SRCROOT/addons" "$TARGET_PATH" +${SYNC} "$SRCROOT/media" "$TARGET_PATH" +${SYNCSKIN} "$SRCROOT/addons/skin.estuary" "$TARGET_PATH/addons" +${SYNC} "$SRCROOT/addons/skin.estuary/extras" "$TARGET_PATH/addons/skin.estuary" +${SYNC} "$SRCROOT/addons/skin.estuary/resources" "$TARGET_PATH/addons/skin.estuary" +${SYNCSKIN} "$SRCROOT/addons/skin.estouchy" "$TARGET_PATH/addons" +${SYNC} "$SRCROOT/addons/skin.estouchy/background" "$TARGET_PATH/addons/skin.estouchy" +${SYNC} "$SRCROOT/addons/skin.estouchy/resources" "$TARGET_PATH/addons/skin.estouchy" +${SYNC} "$SRCROOT/system" "$TARGET_PATH" +${SYNC} "$SRCROOT/userdata" "$TARGET_PATH" # copy extra packages if applicable if [ -d "$SRCROOT/extras/system" ]; then - ${SYNC} "$SRCROOT/extras/system/" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME" + ${SYNC} "$SRCROOT/extras/system/" "$TARGET_PATH" fi # copy extra user packages if applicable if [ -d "$SRCROOT/extras/user" ]; then - ${SYNC} "$SRCROOT/extras/user/" "$TARGET_BUILD_DIR/$TARGET_NAME/Contents/Resources/$APP_NAME/extras/user" + ${SYNC} "$SRCROOT/extras/user/" "$TARGET_PATH/extras/user" fi |