From 2684c79c4d001d3652ec57f0702aa2e70fb2dea7 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Fri, 17 Jan 2014 18:32:30 +0100 Subject: [PATCH] Cleaning up files in extension --- make.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/make.js b/make.js index e8a657004..8984b6457 100644 --- a/make.js +++ b/make.js @@ -572,7 +572,10 @@ target.mozcentral = function() { '../../LICENSE'], DEFAULT_LOCALE_FILES = [LOCALE_SRC_DIR + 'en-US/viewer.properties', - LOCALE_SRC_DIR + 'en-US/chrome.properties']; + LOCALE_SRC_DIR + 'en-US/chrome.properties'], + FIREFOX_MC_EXCLUDED_FILES = + ['icon.png', + 'icon64.png']; target.bundle({ excludes: ['core/network.js'], defines: defines }); cd(ROOT_DIR); @@ -621,6 +624,15 @@ target.mozcentral = function() { rm('-f', file); }); + // Remove excluded files + cd(MOZCENTRAL_EXTENSION_DIR); + FIREFOX_MC_EXCLUDED_FILES.forEach(function(file) { + if (test('-f', file)) { + rm('-r', file); + } + }); + cd(ROOT_DIR); + // Copy default localization files cp(DEFAULT_LOCALE_FILES, MOZCENTRAL_L10N_DIR);