mirror of
https://github.com/ViennaRSS/vienna-rss.git
synced 2026-04-07 19:27:39 +00:00
21360e2619
$PROJECT_DERIVED_FILE_DIR is a more specific directory than $OBJROOT; the folder is located within the Vienna.build folder.
25 lines
711 B
Bash
Executable File
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 ${?}
|