config 3.02 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
57

  hardened_nightly:
boklm's avatar
boklm committed
58
    output_dir: 'hardened_nightly'
boklm's avatar
boklm committed
59
60
    version: '[% c("var/today") %]'
    var:
boklm's avatar
boklm committed
61
      build_target: hardened
boklm's avatar
boklm committed
62
63
64
65

  hardened:
    output_dir: 'hardened'
    var:
boklm's avatar
boklm committed
66
      build_target: hardened
boklm's avatar
boklm committed
67
68
69
70
71
72

input_files:

# Release
 - name: linux-x86_64
   project: tor-browser
boklm's avatar
boklm committed
73
   enable: '[% c("var/torbrowser-linux-x86_64") %]'
boklm's avatar
boklm committed
74
   target:
boklm's avatar
boklm committed
75
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
76
77
     - torbrowser-linux-x86_64

boklm's avatar
boklm committed
78
79
80
81
82
83
84
 - 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
85
86
 - name: linux-i686
   project: tor-browser
boklm's avatar
boklm committed
87
   enable: '[% c("var/torbrowser-linux-i686") %]'
boklm's avatar
boklm committed
88
   target:
boklm's avatar
boklm committed
89
     - '[% c("var/build_target") %]'
boklm's avatar
boklm committed
90
91
92
93
     - torbrowser-linux-i686

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

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


build: |
  #!/bin/sh
  set -e
  export LC_ALL=C
111
  destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
boklm's avatar
boklm committed
112
113
114
115
116
117
118
119
120
121
122
123
  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"/
boklm's avatar
boklm committed
124
    mv [% c('input_files_by_name/sandbox-linux-x86_64') %] "$destdir"/sandbox-[% pc('sandbox', 'version') %]-linux64.zip
boklm's avatar
boklm committed
125
126
  [% END -%]
  cd "$destdir"
127
  sha256sum $(ls -1 *.exe *.tar.xz *.dmg *.mar *.zip | grep -v '\.incremental\.mar$' | sort) > sha256sums-unsigned-build.txt
boklm's avatar
boklm committed
128
  cat sha256sums-unsigned-build.txt