Files
Eitot 21360e2619 Use $PROJECT_DERIVED_FILE_DIR instead of $OBJROOT
$PROJECT_DERIVED_FILE_DIR is a more specific directory than $OBJROOT; the folder is located within the Vienna.build folder.
2025-06-27 19:57:35 +03:00

25 lines
711 B
Bash
Executable File

#!/bin/sh
# Config
. "${PROJECT_DERIVED_FILE_DIR}/autorevision.cache"
N_VCS_TAG="$(echo "${VCS_TAG}" | sed -e 's:^v/::')" # for urls/files
V_VCS_TAG="$(echo "${N_VCS_TAG}" | sed -e 's:_beta: Beta :' -e 's:_rc: RC :')" # for display
case "${N_VCS_TAG}" in
*_beta*)
SU_FEED_URL="https://viennarss.github.io/sparkle-files/changelog_beta.xml"
;;
*_rc*)
SU_FEED_URL="https://viennarss.github.io/sparkle-files/changelog_rc.xml"
;;
*)
SU_FEED_URL="https://viennarss.github.io/sparkle-files/changelog.xml"
;;
esac
INFO="$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH"
/usr/libexec/PlistBuddy "$INFO" -c "add SUFeedURL string $SU_FEED_URL"
/usr/libexec/PlistBuddy "$INFO" -c "set :SUFeedURL $SU_FEED_URL"
exit ${?}