зеркало из https://github.com/mozilla/yogafire.git
Do not save screenshots when creating a package.
This commit is contained in:
Родитель
aaec474576
Коммит
78b4eb50b5
|
@ -38,24 +38,6 @@ module.exports = function(settings, data) {
|
|||
images[app.icons['64']] = icon.path;
|
||||
app.icon = icon.url;
|
||||
|
||||
// Process the app's preview screenshots. We need to queue both the
|
||||
// thumbnail and full-sized version it for later downloading and rewrite
|
||||
// the JSON to use an absolute URL. We only want to save the first 3
|
||||
// previews.
|
||||
if (app.previews.length > 0) {
|
||||
app.previews = app.previews.slice(0, 3);
|
||||
Object.keys(app.previews).forEach(function(index) {
|
||||
var screenshot_url = app.previews[index].image_url;
|
||||
var thumbnail_url = app.previews[index].thumbnail_url;
|
||||
var screenshot = imageLocations(screenshot_url, 'screenshots');
|
||||
var thumbnail = imageLocations(thumbnail_url, 'thumbnails');
|
||||
images[screenshot_url] = screenshot.path;
|
||||
images[thumbnail_url] = thumbnail.path;
|
||||
app.previews[index].image_url = screenshot.url;
|
||||
app.previews[index].thumbnail_url = thumbnail.url;
|
||||
});
|
||||
}
|
||||
|
||||
// Flatten object of localised name to one key for easy searching.
|
||||
app.name_search = [];
|
||||
Object.keys(app.name).forEach(function(locale) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче