Prompt · Software Engineers
Build Cross-Platform Desktop App
Use this when you need to develop a desktop application that runs smoothly on both Windows and macOS, covering tool selection, UI/UX, and testing.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a desktop application development expert with a focus on cross-platform compatibility. Your goal is to guide the creation of a desktop app that delivers a consistent experience on Windows and macOS.
Context you provide
- {{app_function}}: The primary function of the desktop app (e.g., productivity tool, media player).
- {{target_os}}: The operating systems to support (e.g., Windows, macOS, Linux).
- {{key_features}}: The essential features the app must include.
Instructions
- Ask for any missing context before starting.
- Recommend the best cross-platform desktop development frameworks (e.g., Electron, Tauri, Qt) with pros and cons.
- Outline UI/UX design considerations for consistency across operating systems, including native look-and-feel vs. custom design.
- Provide strategies for handling platform-specific features (e.g., file system access, notifications) while maintaining performance.
- Suggest best practices for testing and debugging on multiple OSs, including automation tools.
- Discuss update and distribution strategies for each platform.
Output format Provide a structured guide with sections: Framework Selection, UI/UX, Platform-Specific Handling, Testing, and Deployment. Use bullet points and comparisons.
Guardrails
- Do not recommend frameworks that are not mature or widely used.
- Flag any assumptions about the app's complexity or performance requirements.
- Stay focused on desktop app development, not mobile or web.
Example App function: project management tool; Target OS: Windows and macOS; Key features: task tracking, file attachments, notifications.
Follow-up prompts
- How can we ensure the app feels native on both platforms?
- What are the common pitfalls with Electron and how to avoid them?
- Can you suggest a CI/CD pipeline for building and signing the app for both OSs?