const fs = require('fs'); const path = require('path'); const screenshotsDir = path.join(__dirname, '../public/screenshots'); // Ensure screenshots directory exists if (!fs.existsSync(screenshotsDir)) { fs.mkdirSync(screenshotsDir, { recursive: true }); } // Create a simple placeholder screenshot function createPlaceholderScreenshot(filename, width, height, description) { const svgContent = ` PassMaster ${description} Password Generator Interface •••••••••••••••• Generate Screenshot Placeholder `; const outputPath = path.join(screenshotsDir, filename); fs.writeFileSync(outputPath, svgContent); console.log(`✅ Created ${filename}`); } function createScreenshots() { console.log('🔄 Creating PWA screenshots...'); try { // Desktop screenshot createPlaceholderScreenshot('desktop.png', 1280, 720, 'Desktop Interface'); // Mobile screenshot createPlaceholderScreenshot('mobile.png', 390, 844, 'Mobile Interface'); console.log('🎉 All screenshots created successfully!'); console.log('📝 Note: These are placeholder SVGs. Replace with actual screenshots'); console.log(' of your application for better app store listings.'); } catch (error) { console.error('❌ Error creating screenshots:', error); } } createScreenshots();