config 5.7 KB

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