Cleaning up files in extension

This commit is contained in:
Tim van der Meij 2014-01-17 18:32:30 +01:00
parent 9409f3794a
commit 2684c79c4d

14
make.js
View File

@ -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);