config 3.52 KB
Newer Older
boklm's avatar
boklm committed
1
2
3
4
5
6
# vim: filetype=yaml sw=2
version: '[% c("var/torbrowser_version") %]'
output_dir: 'release/unsigned'

var:
  today: '[% USE date; date.format(format = "%Y-%m-%d") %]'
7
  publish_dir: '[% c("version") %]'
boklm's avatar
boklm committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

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

32
33
34
35
  noversiondir:
    var:
      publish_dir: ''

boklm's avatar
boklm committed
36
37
  release:
    var:
boklm's avatar
boklm committed
38
      build_target: release
boklm's avatar
boklm committed
39
40
41
42
43

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

  alpha_nightly:
    output_dir: 'alpha_nightly'
    version: '[% c("var/today") %]'
    var:
boklm's avatar
boklm committed
50
      build_target: alpha
boklm's avatar
boklm committed
51
52
53
54

  alpha:
    output_dir: 'alpha/unsigned'
    var:
boklm's avatar
boklm committed
55
      build_target: alpha
boklm's avatar
boklm committed
56

boklm's avatar
boklm committed
57
58
59
60
61
62
  testbuild:
    output_dir: 'testbuild'
    version: '.'
    var:
      build_target: torbrowser-testbuild

boklm's avatar
boklm committed
63
  hardened_nightly:
boklm's avatar
boklm committed
64
    output_dir: 'hardened_nightly'
boklm's avatar
boklm committed
65
66
    version: '[% c("var/today") %]'
    var:
boklm's avatar
boklm committed
67
      build_target: hardened
boklm's avatar
boklm committed
68
69
70
71

  hardened:
    output_dir: 'hardened'
    var:
boklm's avatar
boklm committed
72
      build_target: hardened
boklm's avatar
boklm committed
73
74
75
76
77
78

input_files:

# Release
 - name: linux-x86_64
   project: tor-browser
boklm's avatar
boklm committed
79
   enable: '[% c("var/torbrowser-linux-x86_64") %]'
boklm's avatar
boklm committed
80
   target:
boklm's avatar
boklm committed
81
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
82
83
     - torbrowser-linux-x86_64

boklm's avatar
boklm committed
84
85
86
87
88
89
90
 - name: sandbox-linux-x86_64
   project: sandbox
   enable: '[% c("var/torbrowser-linux-x86_64") %]'
   target:
     - '[% c("var/build_target") %]'
     - torbrowser-linux-x86_64

boklm's avatar
boklm committed
91
92
 - name: linux-i686
   project: tor-browser
boklm's avatar
boklm committed
93
   enable: '[% c("var/torbrowser-linux-i686") %]'
boklm's avatar
boklm committed
94
   target:
boklm's avatar
boklm committed
95
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
96
97
98
99
     - torbrowser-linux-i686

 - name: windows-i686
   project: tor-browser
boklm's avatar
boklm committed
100
   enable: '[% c("var/torbrowser-windows-i686") %]'
boklm's avatar
boklm committed
101
   target:
boklm's avatar
boklm committed
102
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
103
104
105
106
     - torbrowser-windows-i686

 - name: osx-x86_64
   project: tor-browser
boklm's avatar
boklm committed
107
   enable: '[% c("var/torbrowser-osx-x86_64") %]'
boklm's avatar
boklm committed
108
   target:
boklm's avatar
boklm committed
109
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
110
111
     - torbrowser-osx-x86_64

boklm's avatar
boklm committed
112
113
114
115
116
117
118
 - name: windows-expert-bundle
   project: tor
   enable: '[% c("var/torbrowser-windows-i686") %]'
   target:
     - '[% c("var/build_target") %]'
     - torbrowser-windows-i686
     - expert-bundle
boklm's avatar
boklm committed
119
120
121
122
123

build: |
  #!/bin/sh
  set -e
  export LC_ALL=C
124
  destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
boklm's avatar
boklm committed
125
126
127
  mkdir -p "$destdir"
  [% IF c("var/torbrowser-windows-i686") -%]
    mv [% c('input_files_by_name/windows-i686') %]/* "$destdir"/
boklm's avatar
boklm committed
128
    mv [% c('input_files_by_name/windows-expert-bundle') %]/* "$destdir"/
boklm's avatar
boklm committed
129
130
131
132
133
134
135
136
137
  [% 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"/
boklm's avatar
boklm committed
138
    mv [% c('input_files_by_name/sandbox-linux-x86_64') %] "$destdir"/sandbox-[% pc('sandbox', 'version') %]-linux64.zip
boklm's avatar
boklm committed
139
140
  [% END -%]
  cd "$destdir"
141
  sha256sum $(ls -1 *.exe *.tar.xz *.dmg *.mar *.zip | grep -v '\.incremental\.mar$' | sort) > sha256sums-unsigned-build.txt
142
143
  [% IF c("var/sign_build") -%]
    gpg -abs [% c("var/sign_build_gpg_opts") %] sha256sums-unsigned-build.txt
144
  [% END -%]
boklm's avatar
boklm committed
145
  cat sha256sums-unsigned-build.txt