# -*- python -*-
# ex: set syntax=python:

# Remove unused archives:
FILES = [f for f in FILES if f.get('archive') not in ['content-shell.zip',
                                                      'headless-shell.zip',
                                                      'remoting-me2me-host-mac.zip',
                                                      'pnacl.zip',
                                                      ]]

FILES = [f for f in FILES if f.get('filename') not in ['Chromium.app',
                                                       'Google Chrome.app',
                                                       'Google Chrome Packaging',
                                                       'Google Chrome Packaging',
                                                       'Google Chrome.dSYM.tar.bz2',
                                                       'browser_tests',
                                                       ]]

FILES = FILES + [
 {
    'filename': 'Vivaldi*.dmg',
    'buildtype': ['dev', 'official'],
    'direct_archive': 1,
    'archive': 'Vivaldi*.dmg',
  },
  {
    'filename': 'Vivaldi*.tar.xz',
    'buildtype': ['dev', 'official'],
    'direct_archive': 1,
    'archive': 'Vivaldi*.tar.xz',
    'optional': ['dev', 'official'],
  },
  {
    'filename': 'Vivaldi.app',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'Vivaldi_Packaging',
    'buildtype': ['official'],
    'archive': 'packaging.zip',
  },
  {
    'filename': 'Vivaldi.dSYM.tar.bz2',
    'buildtype': ['dev', 'official'],
    'archive': 'Vivaldi.dSYM.tar.bz2',
    'optional': ['dev', 'official'],
  },
]

# Source Maps:
FILES = FILES + [{
  'filename': f,
  'buildtype': ['dev'],
  'optional': ['dev'],
  'archive': f,
  'direct_archive': 1,
} for f in [
  'background-bundle.js.map',
  'bundle.js.map',
  'filtering-bundle.js.map',
  'inject-root-bundle.js.map',
  'background-common-bundle.js.map',
  'bundle-mailreader-worker.js.map',
  'inject-all-bundle.js.map',
  'localeSettings-bundle.js.map',
  'threading-bundle.js.map',
  'translate-bundle.js.map',
  'vendor-bundle.js.map',
]]
