config 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # vim: filetype=yaml sw=2
  2. version: '[% c("var/ff_version") %]-[% c("var/ff_build") %]'
  3. filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %]'
  4. var:
  5. ff_version: '[% pc("firefox", "var/firefox_version") %]'
  6. ff_build: build1
  7. input_filename: 'dl-langpack-[% c("var/ff_arch") %]-[% c("version") %]'
  8. targets:
  9. linux:
  10. var:
  11. ff_arch: 'linux-[% c("arch") %]'
  12. linux-arm:
  13. var:
  14. ff_arch: 'linux-i686'
  15. linux-ppc64le:
  16. var:
  17. ff_arch: 'linux-x86_64'
  18. windows-i686:
  19. var:
  20. ff_arch: win32
  21. windows-x86_64:
  22. var:
  23. ff_arch: win64
  24. osx-x86_64:
  25. var:
  26. ff_arch: mac
  27. input_files:
  28. - URL: 'https://ftp.mozilla.org/pub/firefox/candidates/[% c("var/ff_version") %]-candidates/[% c("var/ff_build") %]/SHA512SUMS'
  29. filename: 'SHA512SUMS-[% c("version") %]'
  30. gpg_keyring: firefox.gpg
  31. sig_ext: asc
  32. file_gpg_id: 1
  33. - filename: '[% c("var/input_filename") %]'
  34. refresh_input: 1
  35. exec: |
  36. #!/bin/bash
  37. set -e
  38. [% SET outdir = c("var/input_filename") %]
  39. mkdir -p [% dest_dir %]/[% outdir %]
  40. [% FOREACH lang = c('var/locales') %]
  41. [% SET lang = tmpl(lang) %]
  42. [% SET ffver = c("var/ff_version");
  43. SET ffbuild = c("var/ff_build");
  44. SET ffarch = c("var/ff_arch");
  45. SET URL = "https://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/" _ ffver _ '-candidates/' _ ffbuild _ '/' _ ffarch _ '/xpi/' _ lang _ '.xpi';
  46. SET filename = outdir _ '/' _ lang _ '.xpi'; %]
  47. test -f [% dest_dir %]/[% filename %] || \
  48. [% GET c("urlget", { filename => filename _ '-tmp', URL => URL }); %]
  49. test -f [% dest_dir %]/[% filename %] || \
  50. mv -f [% dest_dir %]/[% filename %]-tmp [% dest_dir %]/[% filename %]
  51. [% END %]