Browse Source

Fixes extension for Chrome

Yury Delendik 13 years ago
parent
commit
3b6ba1d531
  1. 3
      make.js

3
make.js

@ -490,6 +490,9 @@ target.chrome = function() {
// Copy a standalone version of pdf.js inside the content directory // Copy a standalone version of pdf.js inside the content directory
cp(BUILD_TARGET, CHROME_BUILD_CONTENT_DIR + BUILD_DIR); cp(BUILD_TARGET, CHROME_BUILD_CONTENT_DIR + BUILD_DIR);
cp('-R', EXTENSION_WEB_FILES, CHROME_BUILD_CONTENT_DIR + '/web'); cp('-R', EXTENSION_WEB_FILES, CHROME_BUILD_CONTENT_DIR + '/web');
// Replacing the l10n.js file with regular gh-pages one
rm(CHROME_BUILD_CONTENT_DIR + '/web/l10n.js');
cp('external/webL10n/l10n.js', CHROME_BUILD_CONTENT_DIR + '/web');
cp('web/locale.properties', CHROME_BUILD_CONTENT_DIR + '/web'); cp('web/locale.properties', CHROME_BUILD_CONTENT_DIR + '/web');
mv('-f', CHROME_BUILD_CONTENT_DIR + '/web/viewer-production.html', mv('-f', CHROME_BUILD_CONTENT_DIR + '/web/viewer-production.html',
CHROME_BUILD_CONTENT_DIR + '/web/viewer.html'); CHROME_BUILD_CONTENT_DIR + '/web/viewer.html');

Loading…
Cancel
Save