pabal-store-api-mcp 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -196,26 +196,18 @@ export class GooglePlayService {
|
|
|
196
196
|
((localeData.screenshots.phone &&
|
|
197
197
|
localeData.screenshots.phone.length > 0) ||
|
|
198
198
|
(localeData.screenshots.tablet &&
|
|
199
|
-
localeData.screenshots.tablet.length > 0)
|
|
200
|
-
(localeData.screenshots.tablet7 &&
|
|
201
|
-
localeData.screenshots.tablet7.length > 0) ||
|
|
202
|
-
(localeData.screenshots.tablet10 &&
|
|
203
|
-
localeData.screenshots.tablet10.length > 0));
|
|
199
|
+
localeData.screenshots.tablet.length > 0));
|
|
204
200
|
let screenshots;
|
|
205
201
|
if (hasScreenshotsInJson) {
|
|
206
202
|
// Use screenshots from aso-data.json (relative paths)
|
|
207
203
|
console.error(`[GooglePlay] 📋 Using screenshots from aso-data.json for ${locale}`);
|
|
208
204
|
const relativePaths = localeData.screenshots;
|
|
209
|
-
//
|
|
210
|
-
|
|
205
|
+
// Google Play upload strategy:
|
|
206
|
+
// - phone array → uploads to both phoneScreenshots AND sevenInchScreenshots
|
|
207
|
+
// - tablet array → uploads to tenInchScreenshots only
|
|
211
208
|
screenshots = {
|
|
212
209
|
phone: (relativePaths.phone || []).map((p) => `${screenshotsBaseDir}/${p}`),
|
|
213
|
-
|
|
214
|
-
? relativePaths.tablet7.map((p) => `${screenshotsBaseDir}/${p}`)
|
|
215
|
-
: genericTablet,
|
|
216
|
-
tablet10: relativePaths.tablet10?.length
|
|
217
|
-
? relativePaths.tablet10.map((p) => `${screenshotsBaseDir}/${p}`)
|
|
218
|
-
: genericTablet,
|
|
210
|
+
tablet: (relativePaths.tablet || []).map((p) => `${screenshotsBaseDir}/${p}`),
|
|
219
211
|
featureGraphic: localeData.featureGraphic
|
|
220
212
|
? `${screenshotsBaseDir}/${localeData.featureGraphic}`
|
|
221
213
|
: null,
|
|
@@ -230,29 +222,33 @@ export class GooglePlayService {
|
|
|
230
222
|
continue;
|
|
231
223
|
}
|
|
232
224
|
console.error(`[GooglePlay] 📂 Parsing screenshots from file system for ${locale}`);
|
|
233
|
-
|
|
225
|
+
const fsScreenshots = parseGooglePlayScreenshots(screenshotsFsDir, locale);
|
|
226
|
+
// File system fallback: use tablet10 as tablet
|
|
227
|
+
screenshots = {
|
|
228
|
+
phone: fsScreenshots.phone,
|
|
229
|
+
tablet: fsScreenshots.tablet10,
|
|
230
|
+
featureGraphic: fsScreenshots.featureGraphic,
|
|
231
|
+
};
|
|
234
232
|
}
|
|
235
233
|
// Google Play requires minimum 2 phone screenshots
|
|
236
|
-
const phoneCount = screenshots.phone.length
|
|
234
|
+
const phoneCount = screenshots.phone.length;
|
|
237
235
|
if (phoneCount < 2) {
|
|
238
|
-
console.error(`[GooglePlay] ⚠️ Skipping ${locale} - needs at least 2 phone
|
|
236
|
+
console.error(`[GooglePlay] ⚠️ Skipping ${locale} - needs at least 2 phone screenshots (found ${phoneCount})`);
|
|
239
237
|
skippedLocales.push(locale);
|
|
240
238
|
continue;
|
|
241
239
|
}
|
|
242
240
|
console.error(`[GooglePlay] 📤 Uploading screenshots for ${locale} (batch mode - will replace existing)...`);
|
|
243
|
-
//
|
|
244
|
-
//
|
|
245
|
-
|
|
246
|
-
...screenshots.phone,
|
|
247
|
-
...screenshots.tablet7,
|
|
248
|
-
];
|
|
241
|
+
// Google Play upload strategy:
|
|
242
|
+
// - phone → uploads to phoneScreenshots AND sevenInchScreenshots (both use same images)
|
|
243
|
+
// - tablet → uploads to tenInchScreenshots only
|
|
249
244
|
const uploadResult = await client.uploadScreenshotsForLocale({
|
|
250
245
|
language: locale,
|
|
251
|
-
phoneScreenshots:
|
|
252
|
-
|
|
246
|
+
phoneScreenshots: screenshots.phone,
|
|
247
|
+
sevenInchScreenshots: screenshots.phone,
|
|
248
|
+
tenInchScreenshots: screenshots.tablet,
|
|
253
249
|
featureGraphic: screenshots.featureGraphic || undefined,
|
|
254
250
|
});
|
|
255
|
-
console.error(`[GooglePlay] ✅ Screenshots uploaded for ${locale}: ${uploadResult.uploaded.phoneScreenshots} phone, ${uploadResult.uploaded.tenInchScreenshots}
|
|
251
|
+
console.error(`[GooglePlay] ✅ Screenshots uploaded for ${locale}: ${uploadResult.uploaded.phoneScreenshots} phone, ${uploadResult.uploaded.sevenInchScreenshots} 7-inch, ${uploadResult.uploaded.tenInchScreenshots} 10-inch`);
|
|
256
252
|
uploadedLocales.push(locale);
|
|
257
253
|
}
|
|
258
254
|
catch (error) {
|