diff --git a/Scripts/update_plist_info.sh b/Scripts/update_plist_info.sh
new file mode 100755
index 000000000..830facd05
--- /dev/null
+++ b/Scripts/update_plist_info.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+set -e
+
+# PROJECT_DIR will be set when run from xcode, else we infer it
+if [ "${PROJECT_DIR}" = "" ]; then
+ PROJECT_DIR=`git rev-parse --show-toplevel`
+ echo "inferred ${PROJECT_DIR}"
+fi
+
+# 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
+
+_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
+
diff --git a/Signal.xcodeproj/project.pbxproj b/Signal.xcodeproj/project.pbxproj
index 22a328f57..1c2041c5c 100644
--- a/Signal.xcodeproj/project.pbxproj
+++ b/Signal.xcodeproj/project.pbxproj
@@ -2687,7 +2687,7 @@
45AE48531E073428004D96C2 /* Swift Lint */,
D221A085169C9E5E00537ABF /* Sources */,
D221A086169C9E5E00537ABF /* Frameworks */,
- 34C239432180B01B00B6108F /* ShellScript */,
+ 34C239432180B01B00B6108F /* Run Script: update_list_info */,
D221A087169C9E5E00537ABF /* Resources */,
59C9DBA462715B5C999FFB02 /* [CP] Embed Pods Frameworks */,
451DE9EE1DC1546A00810E42 /* [Carthage] Copy Frameworks */,
@@ -3025,18 +3025,19 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
- 34C239432180B01B00B6108F /* ShellScript */ = {
+ 34C239432180B01B00B6108F /* Run Script: update_list_info */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
+ name = "Run Script: update_list_info";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Capture hash & comment from last WebRTC git commit.\ncd $PROJECT_DIR/ThirdParty/WebRTC/\n_git_commit=`git log --pretty=oneline | head -1`\ncd $PROJECT_DIR\n\n# Remove existing .plist entry, if any.\n/usr/libexec/PlistBuddy -c \"Delete BuildDetails\" Signal/Signal-Info.plist || true\n# Add new .plist entry.\n/usr/libexec/PlistBuddy -c \"add BuildDetails dict\" Signal/Signal-Info.plist\n\n/usr/libexec/PlistBuddy -c \"add :BuildDetails:WebRTCCommit string '$_git_commit'\" Signal/Signal-Info.plist\n\n_osx_version=`defaults read loginwindow SystemVersionStampAsString`\n/usr/libexec/PlistBuddy -c \"add :BuildDetails:OSXVersion string '$_osx_version'\" Signal/Signal-Info.plist\n\n_cocoapods_version=`pod --version`\n/usr/libexec/PlistBuddy -c \"add :BuildDetails:CocoapodsVersion string '$_cocoapods_version'\" Signal/Signal-Info.plist\n\n_carthage_version=`carthage version`\n/usr/libexec/PlistBuddy -c \"add :BuildDetails:CarthageVersion string '$_carthage_version'\" Signal/Signal-Info.plist\n\necho \"CONFIGURATION: ${CONFIGURATION}\"\nif [ \"${CONFIGURATION}\" = \"App Store Release\" ]; then\n /usr/libexec/PlistBuddy -c \"add :BuildDetails:XCodeVersion string '${XCODE_VERSION_MAJOR}.${XCODE_VERSION_MINOR}'\" Signal/Signal-Info.plist\n\n # Use UTC\n _build_datetime=`date -u`\n /usr/libexec/PlistBuddy -c \"add :BuildDetails:DateTime string '$_build_datetime'\" Signal/Signal-Info.plist\nfi\n";
+ shellScript = "$PROJECT_DIR/Scripts/update_plist_info.sh\n";
};
451DE9EE1DC1546A00810E42 /* [Carthage] Copy Frameworks */ = {
isa = PBXShellScriptBuildPhase;
diff --git a/Signal/Signal-Info.plist b/Signal/Signal-Info.plist
index f3828dc8f..cb400c45e 100644
--- a/Signal/Signal-Info.plist
+++ b/Signal/Signal-Info.plist
@@ -5,11 +5,9 @@
BuildDetails
CarthageVersion
- 0.31.1
- CocoapodsVersion
- 1.5.3
+ 0.31.2
OSXVersion
- 10.13.6
+ 10.14.1
WebRTCCommit
ca71024b4993ba95e3e6b8d0758004cffc54ddaf M70