From c59baae4c7b7ce3136c10078605f37de9494ad56 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 24 Dec 2015 16:14:28 -0800 Subject: 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. --- build.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3