[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-build/master] Use faketime when generating dmg files



commit 80399fe56927e17df1c4130698518445b009ae5a
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Wed Feb 15 15:25:09 2017 +0100

    Use faketime when generating dmg files
---
 projects/tor-browser/config  | 1 +
 projects/tor-browser/ddmg.sh | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/projects/tor-browser/config b/projects/tor-browser/config
index 01463d9..5ee8be7 100644
--- a/projects/tor-browser/config
+++ b/projects/tor-browser/config
@@ -22,6 +22,7 @@ targets:
         - unzip
         - python
         - bzip2
+        - faketime
   windows-i686:
     var:
       mar_osname: win32
diff --git a/projects/tor-browser/ddmg.sh b/projects/tor-browser/ddmg.sh
index bc88797..20bd8f9 100755
--- a/projects/tor-browser/ddmg.sh
+++ b/projects/tor-browser/ddmg.sh
@@ -10,6 +10,9 @@ pushd [% src %]
 find . -type f | sed -e 's/^\.\///' | sort | xargs -i echo "{}={}" > [% filelist %]
 find . -type l | sed -e 's/^\.\///' | sort | xargs -i echo "{}={}" >> [% filelist %]
 
+export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
+export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
+
 genisoimage -D -V "Tor Browser" -no-pad -R -apple -o "$dmg_tmpdir/tbb-uncompressed.dmg" -path-list [% filelist %] -graft-points -gid 20 -dir-mode 0755 -new-dir-mode 0755
 
 dmg dmg "$dmg_tmpdir/tbb-uncompressed.dmg" [% c('dmg_out', { error_if_undef => 1 }) %]



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits