commit be9a70bbc271a0d5eba080c49694b6477c6e31a0 Author: Nicolas Vigier boklm@torproject.org Date: Mon Mar 7 19:45:36 2016 +0100
Add a tor-messenger-release makefile rule
This rule will build Tor Messenger for all platforms, rename files to their final name and generate an sha256sums.txt file. --- Makefile | 3 +++ README | 4 ++++ projects/tor-messenger-release/config | 43 +++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+)
diff --git a/Makefile b/Makefile index f203ea5..0e539d1 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ all: tor-messenger
tor-messenger: tor-messenger-linux-x86_64 tor-messenger-linux-i686 tor-messenger-windows-i686 tor-messenger-osx-x86_64
+tor-messenger-release: + $(rbm) build tor-messenger-release + tor-mail: tor-mail-linux-x86_64 tor-mail-linux-i686
tor-messenger-linux-x86_64: submodule-update diff --git a/README b/README index cc09732..6b4a642 100644 --- a/README +++ b/README @@ -52,6 +52,10 @@ If you want to build only one architecture, you can run something like
The resulting builds are stored in the out/tor-messenger directory.
+You can also run "make tor-messenger-release" to build it for all +architectures, rename files to their final name and generate an +sha256sums.txt file in the directory release/$version. +
Updating git and hg sources --------------------------- diff --git a/projects/tor-messenger-release/config b/projects/tor-messenger-release/config new file mode 100644 index 0000000..87185ca --- /dev/null +++ b/projects/tor-messenger-release/config @@ -0,0 +1,43 @@ +# vim: filetype=yaml sw=2 +version: '[% c("var/tormessenger_version") %]' +output_dir: 'release' + +input_files: + + - name: linux-x86_64 + project: tor-messenger + target: + - tor-messenger + - linux-x86_64 + + - name: linux-i686 + project: tor-messenger + target: + - tor-messenger + - linux-i686 + + - name: windows-i686 + project: tor-messenger + target: + - tor-messenger + - windows-i686 + + - name: osx-x86_64 + project: tor-messenger + target: + - tor-messenger + - osx-x86_64 + +build: | + #!/bin/sh + set -e + export LC_ALL=C + destdir="[% dest_dir _ '/' _ c("version") %]" + mkdir -p "$destdir" + mv [% c('input_files_by_name/linux-x86_64') %] "$destdir"/tor-messenger-linux64-[% c("version") %]_en-US.tar.xz + mv [% c('input_files_by_name/linux-i686') %] "$destdir"/tor-messenger-linux32-[% c("version") %]_en-US.tar.xz + mv [% c('input_files_by_name/windows-i686') %] "$destdir"/tormessenger-install-[% c("version") %]_en-US.exe + mv [% c('input_files_by_name/osx-x86_64') %] "$destdir"/TorMessenger-[% c("version") %]-osx64_en-US.dmg + cd "$destdir" + sha256sum $(ls -1 *.exe *.tar.xz *.dmg | sort) > sha256sums.txt + cat sha256sums.txt
tor-commits@lists.torproject.org