config 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. # vim: filetype=yaml sw=2
  2. version: '[% c("abbrev") %]'
  3. filename: 'firefox-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %]'
  4. git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-1-build2'
  5. tag_gpg_id: 1
  6. git_url: https://git.torproject.org/tor-browser.git
  7. git_submodule: 1
  8. gpg_keyring: torbutton.gpg
  9. var:
  10. firefox_platform_version: 68.6.0
  11. firefox_version: '[% c("var/firefox_platform_version") %]esr'
  12. torbrowser_branch: 9.5
  13. branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/alpha'
  14. copyright_year: '[% exec("git show -s --format=%ci").remove("-.*") %]'
  15. deps:
  16. - build-essential
  17. - unzip
  18. - zip
  19. - autoconf2.13
  20. - yasm
  21. # We are building our own version of Python 3.6, which is required
  22. # for the build. However mach still requires Python 2.7, so we
  23. # install this version using the package.
  24. - python
  25. - pkg-config
  26. container:
  27. use_container: 1
  28. # this should be updated when the list of gradle dependencies is changed
  29. gradle_dependencies_version: 6
  30. # used by projects/firefox-locale-bundle
  31. l10n-changesets.json: '[% exec("cat mobile/locales/l10n-changesets.json") %]'
  32. steps:
  33. src-tarballs:
  34. filename: 'src-[% project %]-[% c("version") %].tar.xz'
  35. version: '[% c("git_hash") %]'
  36. input_files: []
  37. var:
  38. container:
  39. use_container: 0
  40. targets:
  41. nightly:
  42. version: '[% c("abbrev") %]'
  43. targets:
  44. release:
  45. var:
  46. branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/official'
  47. nightly:
  48. git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-1'
  49. tag_gpg_id: 0
  50. var:
  51. branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/nightly'
  52. linux:
  53. var:
  54. post_pkginst: |
  55. # Firefox ESR68 needs Yasm >= 1.2.0 which Debian Wheezy ships in backports.
  56. echo 'deb http://archive.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list
  57. export DEBIAN_FRONTEND=noninteractive
  58. apt-get update
  59. apt-get install -t wheezy-backports -y yasm
  60. linux-x86_64:
  61. var:
  62. martools_filename: mar-tools-linux64.zip
  63. arch_deps:
  64. - libgtk2.0-dev
  65. - libgtk-3-dev
  66. - libdbus-glib-1-dev
  67. - libxt-dev
  68. - hardening-wrapper
  69. # To pass configure since ESR 31.
  70. - libpulse-dev
  71. # To pass configure since ESR 52
  72. - libx11-xcb-dev
  73. linux-i686:
  74. var:
  75. martools_filename: mar-tools-linux32.zip
  76. sort_deps: 0
  77. arch_deps:
  78. - libgtk2.0-dev:i386
  79. - libgtk-3-dev:i386
  80. - libdbus-glib-1-dev:i386
  81. - libxt-dev:i386
  82. - hardening-wrapper
  83. # To pass configure since ESR 31.
  84. - libpulse-dev:i386
  85. # To pass configure since ESR 52
  86. - libx11-xcb-dev:i386
  87. osx-x86_64:
  88. var:
  89. martools_filename: mar-tools-mac64.zip
  90. arch_deps:
  91. - rsync
  92. windows:
  93. var:
  94. arch_deps:
  95. - wine
  96. pre_pkginst: |
  97. [% IF c("var/windows-i686") -%]
  98. # We need this to install wine32
  99. dpkg --add-architecture i386
  100. [% END -%]
  101. echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
  102. post_pkginst: |
  103. # We need to have at least 3.0.3 which Mozilla is using in the
  104. # mingw-w64/clang build process
  105. apt-get -y -t stretch-backports install wine[% IF c("var/windows-i686") %]32[% END %]
  106. compiler: mingw-w64-clang
  107. windows-i686:
  108. var:
  109. martools_filename: mar-tools-win32.zip
  110. windows-x86_64:
  111. var:
  112. martools_filename: mar-tools-win64.zip
  113. input_files:
  114. - project: container-image
  115. - name: '[% c("var/compiler") %]'
  116. project: '[% c("var/compiler") %]'
  117. - filename: get-moz-build-date
  118. - filename: 'mozconfig-[% c("var/osname") %]'
  119. name: mozconfig
  120. - project: binutils
  121. name: binutils
  122. enable: '[% c("var/linux") || c("var/android") %]'
  123. - filename: fix-info-plist.py
  124. enable: '[% c("var/osx") %]'
  125. - filename: nsis-uninstall.patch
  126. enable: '[% c("var/windows") %]'
  127. - project: rust
  128. name: rust
  129. - project: cbindgen
  130. name: cbindgen
  131. - project: node
  132. name: node
  133. - project: nasm
  134. name: nasm
  135. - project: python
  136. name: python
  137. - project: clang
  138. name: clang
  139. - project: fxc2
  140. name: fxc2
  141. enable: '[% c("var/windows") %]'
  142. - name: mingw-w64
  143. project: mingw-w64
  144. enable: '[% c("var/windows") %]'
  145. - filename: abicheck.cc
  146. enable: '[% c("var/linux") %]'
  147. - filename: start-firefox
  148. enable: '[% c("var/linux") %]'
  149. - project: tor-launcher
  150. name: tor-launcher
  151. enable: '[% ! c("var/android") %]'
  152. - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
  153. name: gradle-dependencies
  154. exec: '[% INCLUDE "fetch-gradle-dependencies" %]'
  155. enable: '[% c("var/android") %]'
  156. - project: tor-android-service
  157. name: tor-android-service
  158. enable: '[% c("var/android") %]'
  159. - project: tor-onion-proxy-library
  160. name: topl
  161. enable: '[% c("var/android") %]'
  162. - project: firefox-locale-bundle
  163. name: firefox-locale-bundle
  164. enable: '[% c("var/android") %]'
  165. - project: tba-translation
  166. name: tba-translation
  167. enable: '[% c("var/android") %]'
  168. - filename: nightly-marsigner.der
  169. enable: '[% c("var/nightly") %]'
  170. - filename: namecoin-torbutton.patch
  171. enable: '[% c("var/namecoin") %]'
  172. # TorButton patch authored by Arthur Edelstein, from https://github.com/arthuredelstein/torbutton/ branch 2.1.10-namecoin
  173. - filename: namecoin-etld.patch
  174. enable: '[% c("var/namecoin") %]'