mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.3 KiB
Bash
33 lines
1.3 KiB
Bash
6 years ago
|
#!/bin/sh
|
||
|
|
||
|
# Capture hash & comment from last WebRTC git commit.
|
||
|
cd $PROJECT_DIR/ThirdParty/WebRTC/
|
||
|
_git_commit=`git log --pretty=oneline | head -1`
|
||
|
cd $PROJECT_DIR
|
||
|
|
||
|
# Remove existing .plist entry, if any.
|
||
|
/usr/libexec/PlistBuddy -c "Delete BuildDetails" Signal/Signal-Info.plist || true
|
||
|
# Add new .plist entry.
|
||
|
/usr/libexec/PlistBuddy -c "add BuildDetails dict" Signal/Signal-Info.plist
|
||
|
|
||
|
/usr/libexec/PlistBuddy -c "add :BuildDetails:WebRTCCommit string '$_git_commit'" Signal/Signal-Info.plist
|
||
|
|
||
|
_osx_version=`defaults read loginwindow SystemVersionStampAsString`
|
||
|
/usr/libexec/PlistBuddy -c "add :BuildDetails:OSXVersion string '$_osx_version'" Signal/Signal-Info.plist
|
||
|
|
||
|
_cocoapods_version=`pod --version`
|
||
|
/usr/libexec/PlistBuddy -c "add :BuildDetails:CocoapodsVersion string '$_cocoapods_version'" Signal/Signal-Info.plist
|
||
|
|
||
|
_carthage_version=`carthage version`
|
||
|
/usr/libexec/PlistBuddy -c "add :BuildDetails:CarthageVersion string '$_carthage_version'" Signal/Signal-Info.plist
|
||
|
|
||
|
echo "CONFIGURATION: ${CONFIGURATION}"
|
||
|
if [ "${CONFIGURATION}" = "App Store Release" ]; then
|
||
|
/usr/libexec/PlistBuddy -c "add :BuildDetails:XCodeVersion string '${XCODE_VERSION_MAJOR}.${XCODE_VERSION_MINOR}'" Signal/Signal-Info.plist
|
||
|
|
||
|
# Use UTC
|
||
|
_build_datetime=`date -u`
|
||
|
/usr/libexec/PlistBuddy -c "add :BuildDetails:DateTime string '$_build_datetime'" Signal/Signal-Info.plist
|
||
|
fi
|
||
|
|