config 2.63 KB
Newer Older
boklm's avatar
boklm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# vim: filetype=yaml sw=2
version: '[% c("var/torbrowser_version") %]'
output_dir: 'release/unsigned'

var:
  today: '[% USE date; date.format(format = "%Y-%m-%d") %]'

targets:
  torbrowser-all:
    - torbrowser-linux-x86_64
    - torbrowser-linux-i686
    - torbrowser-windows-i686
    - torbrowser-osx-x86_64
  torbrowser-linux-x86_64:
    var:
      torbrowser-linux-x86_64: 1
  torbrowser-linux-i686:
    var:
      torbrowser-linux-i686: 1
  torbrowser-windows-i686:
    var:
      torbrowser-windows-i686: 1
  torbrowser-osx-x86_64:
    var:
      torbrowser-osx-x86_64: 1

  notarget:
    - release
    - torbrowser-all

  release:
    var:
boklm's avatar
boklm committed
33
      build_target: release
boklm's avatar
boklm committed
34
35
36
37
38

  nightly:
    output_dir: 'nightly'
    version: '[% c("var/today") %]'
    var:
boklm's avatar
boklm committed
39
      build_target: nightly
boklm's avatar
boklm committed
40
41
42
43
44

  alpha_nightly:
    output_dir: 'alpha_nightly'
    version: '[% c("var/today") %]'
    var:
boklm's avatar
boklm committed
45
      build_target: alpha
boklm's avatar
boklm committed
46
47
48
49

  alpha:
    output_dir: 'alpha/unsigned'
    var:
boklm's avatar
boklm committed
50
      build_target: alpha
boklm's avatar
boklm committed
51
52

  hardened_nightly:
boklm's avatar
boklm committed
53
    output_dir: 'hardened_nightly'
boklm's avatar
boklm committed
54
55
    version: '[% c("var/today") %]'
    var:
boklm's avatar
boklm committed
56
      build_target: hardened
boklm's avatar
boklm committed
57
58
59
60

  hardened:
    output_dir: 'hardened'
    var:
boklm's avatar
boklm committed
61
      build_target: hardened
boklm's avatar
boklm committed
62
63
64
65
66
67

input_files:

# Release
 - name: linux-x86_64
   project: tor-browser
boklm's avatar
boklm committed
68
   enable: '[% c("var/torbrowser-linux-x86_64") %]'
boklm's avatar
boklm committed
69
   target:
boklm's avatar
boklm committed
70
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
71
72
73
74
     - torbrowser-linux-x86_64

 - name: linux-i686
   project: tor-browser
boklm's avatar
boklm committed
75
   enable: '[% c("var/torbrowser-linux-i686") %]'
boklm's avatar
boklm committed
76
   target:
boklm's avatar
boklm committed
77
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
78
79
80
81
     - torbrowser-linux-i686

 - name: windows-i686
   project: tor-browser
boklm's avatar
boklm committed
82
   enable: '[% c("var/torbrowser-windows-i686") %]'
boklm's avatar
boklm committed
83
   target:
boklm's avatar
boklm committed
84
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
85
86
87
88
     - torbrowser-windows-i686

 - name: osx-x86_64
   project: tor-browser
boklm's avatar
boklm committed
89
   enable: '[% c("var/torbrowser-osx-x86_64") %]'
boklm's avatar
boklm committed
90
   target:
boklm's avatar
boklm committed
91
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
     - torbrowser-osx-x86_64


build: |
  #!/bin/sh
  set -e
  export LC_ALL=C
  destdir="[% dest_dir _ '/' _ c("version") %]"
  mkdir -p "$destdir"
  [% IF c("var/torbrowser-windows-i686") -%]
    mv [% c('input_files_by_name/windows-i686') %]/* "$destdir"/
  [% END -%]
  [% IF c("var/torbrowser-osx-x86_64") -%]
    mv [% c('input_files_by_name/osx-x86_64') %]/* "$destdir"/
  [% END -%]
  [% IF c("var/torbrowser-linux-i686") -%]
    mv [% c('input_files_by_name/linux-i686') %]/* "$destdir"/
  [% END -%]
  [% IF c("var/torbrowser-linux-x86_64") -%]
    mv [% c('input_files_by_name/linux-x86_64') %]/* "$destdir"/
  [% END -%]
  cd "$destdir"
  sha256sum $(ls -1 *.exe *.tar.xz *.dmg *.mar | grep -v '\.incremental\.mar$' | sort) > sha256sums-unsigned-build.txt
  cat sha256sums-unsigned-build.txt