Skip to content

Commit

Permalink
Fix generating asset preview html
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Aug 25, 2023
1 parent 167e718 commit 3aab691
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions application/console/views/cron/scripts/upload/default/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,16 @@ set_default_asset_package() {
echo "Updating ipa-app-type=assets"
echo "Updating ipa-asset-filename=${ASSET_FILENAME}"
echo "Project=${PROJECT_DIR}/build.appDef"
xmlstarlet ed --inplace -s "/app-definition" -t elem -n "ipa-app-type" -v "assets" "${PROJECT_DIR}/build.appDef"
xmlstarlet ed --inplace -s "/app-definition" -t elem -n "ipa-asset-filename" -v "${ASSET_FILENAME}" "${PROJECT_DIR}/build.appDef"
if grep -q "<ipa-app-type>" "${PROJECT_DIR}/build.appDef"; then
xmlstarlet ed --inplace -u "/app-definition/ipa-app-type" -v "assets" "${PROJECT_DIR}/build.appDef"
else
xmlstarlet ed --inplace -s "/app-definition" -t elem -n "ipa-app-type" -v "assets" "${PROJECT_DIR}/build.appDef"
fi
if grep -q "<ipa-asset-filename>" "${PROJECT_DIR}/build.appDef"; then
xmlstarlet ed --inplace -u "/app-definition/ipa-asset-filename" -v "${ASSET_FILENAME}" "${PROJECT_DIR}/build.appDef"
else
xmlstarlet ed --inplace -s "/app-definition" -t elem -n "ipa-asset-filename" -v "${ASSET_FILENAME}" "${PROJECT_DIR}/build.appDef"
fi
}

build_asset_package() {
Expand Down

0 comments on commit 3aab691

Please sign in to comment.