build 616 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. mkdir -p chrome/browser/content/browser/manual
  4. unzip $rootdir/[% c('input_files_by_name/manual') %]
  5. python3 $rootdir/[% c('input_files_by_name/package_script') %] public chrome/browser/content/browser/manual
  6. pushd chrome/browser/content/browser/manual/static
  7. find -name '*.map' -delete
  8. rm -rf fonts
  9. rm -rf css/digital-climate-strike css/images
  10. # We prune unused images in the Python script, but empty directories remain
  11. find images -type d -empty -delete
  12. popd
  13. [% c('tar', {
  14. tar_src => [ 'chrome' ],
  15. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  16. }) %]