aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-24 16:14:28 -0800
committerTeddy Wing2015-12-24 16:15:13 -0800
commitc59baae4c7b7ce3136c10078605f37de9494ad56 (patch)
tree2b016019724798cb4fd06320624cd3bfb50a2102
parent00fed24a5e42a8c12c38b22241c9166b52a65117 (diff)
downloadRoboFont-Equalize-Sidebearings-Key-c59baae4c7b7ce3136c10078605f37de9494ad56.tar.bz2
build.sh: Update `timeStamp` on build
When building a new bundle, update the `timeStamp` key in `info.plist` to correspond to the current time. Was hoping to retain the decimal value in the timestamp, but for some reason only the integer part stays after it gets set. Oh well, I don't care enough to fiddle with that.
-rw-r--r--build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 003ee52..e121463 100644
--- a/build.sh
+++ b/build.sh
@@ -11,3 +11,6 @@ cp "${current_dir}"/*.py "${base_dir}/lib"
# Copy Info.plist into extension bundle
cp "${current_dir}"/info.plist "${base_dir}"
+
+# Update timestamp in info.plist
+/usr/libexec/PlistBuddy -c "Set timeStamp $(python -c 'import time; print(time.time())')" "${base_dir}"/info.plist