App Release Specification
This document describes the complete micro-app release flow, the security review requirements, and related notes, helping developers get their app listed and reviewed smoothly.
Preparing for release
1. Self-testing and validation
Before submitting a release request, developers must complete the following self-testing work:
- Feature completeness testing: make sure every functional module works, with no critical exceptions or blocking bugs
- Health check and startup testing: the backend must support the
pingmethod and respond to it correctly (returning"pong"), so the client passes the liveness probe when it launches the daemon - Platform and architecture compatibility: for a Go-based backend, verify by cross-compilation (
make build-linux) that the binary runs on a clean Linux environment - Resources and memory usage: when the service exits it must clean up temporary files and the Unix Socket (
tmp/app.sock), with no memory leaks and no zombie processes
2. Code audit and specification checks
- Follow the micro-app layering specification; see Project Structure Specification
- Remove local test leftovers, test account keys, and temporary debug logs
- Pin dependency versions; never introduce third-party dependencies that are unaudited or carry known vulnerabilities
🔒 Core security specification (strict code audit items)
GM Desktop takes the data and system security of user servers very seriously. Every micro-app submitted for release goes through a strict code audit by the official security team. Make sure you respect the following baseline requirements:
1. External network interfaces and outbound calls
- Never call online/external interfaces on your own: micro-apps are designed to run in the user's local server environment and manage that server directly. Apart from the client capabilities GM Desktop provides natively, micro-apps are forbidden by default to send private-network or public-network requests to third-party external servers or unreported domains.
- Exceptions for special business scenarios (must be reported):
- If the app belongs to the AI model service category (it has to call external AI model provider APIs), or needs to fetch metadata from official open-source mirrors in real time as a legitimate business need, it may call external online interfaces from its code.
- What you must do: when submitting a release request, you must state truthfully and explicitly the reason for the external calls, the service provider, and the types of data transmitted in the "Release notes" or the app details, so the review team can audit it specifically.
- Never collect or steal user data: uploading or collecting sensitive information from user servers without permission is strictly forbidden (including but not limited to public/private server IPs, SSH keys, login credentials, command execution history, business database data, and personal privacy data). Any violation means an immediate developer account ban and removal of all your apps.
2. Frontend security and injection prevention
- Prevent XSS attacks:
- When the frontend renders user input, log content, system file content, or execution results, it must escape and filter it properly; never use
v-htmlorinnerHTMLto blindly render unfiltered rich text. - Never pull in external
<script>files by dynamic string concatenation, and never useeval()ornew Function()to execute dynamic code.
- When the frontend renders user input, log content, system file content, or execution results, it must escape and filter it properly; never use
- Prevent command injection:
- When the backend runs low-level system commands (for example with Go's
exec.Command), dangerous shell string concatenation is forbidden (for example callingsh -c "command " + userInputdirectly); validate every parameter strictly against an allowlist and pass structured arguments.
- When the backend runs low-level system commands (for example with Go's
- Path traversal defense:
- When working with files, use the
pkg/filestoolset that the template provides, or strictly check that the target path is inside an allowed directory (such as under/.__gmssh/), so../../traversal cannot read or overwrite critical system files (such as/etc/passwdor~/.ssh/).
- When working with files, use the
Release process
1. Submit a release request
- Sign in to the Developer Center console
- Open the "App Management" page in the left navigation
- Find the target micro-app in the app list and click "Publish"
- Fill in the version number and detailed release notes, confirm the linked Git commit, and submit for review
- Wait for the official security and experience team to run the automated audit and manual review
2. Complete the app details and presentation
Before the app goes live, make sure the app details are professional and complete:
Basic information
- App name: concise, standardized, and recognizable, describing the app's purpose accurately
- App icon (Logo): a crisp vector or high-resolution image; a PNG of at least 256×256 on a transparent background is recommended
- Version number: strictly follow semantic versioning (such as
1.0.0or1.0.1) - App description: provide a clear feature description, the applicable scenarios, and the prerequisites for use
Platform and CPU architecture settings
The GM Desktop backend has been fully upgraded to a Go architecture:
- Provide support for the mainstream architectures first: x86_64 (amd64) and AArch64 (arm64)
- The backend should be compiled statically into a single executable, so it does not rely on a complex runtime interpreter installed on the target server
Promotion and screenshots
- Upload high-resolution screenshots of the app actually running (Chinese and English sets are supported, up to 5 per set), so users can see the core features at a glance in the App Center.
Review process and rejection handling
Review criteria checklist
| Evaluation dimension | Key review focus |
|---|---|
| Security and compliance (veto) | No XSS / command injection, no unauthorized external API calls, no collection of user privacy or server credentials, safe path validation |
| Architecture compliance | The Go backend answers the ping health check, the socket lives in tmp/app.sock, persistent data is written to the isolated data directory |
| Feature experience | Features are self-consistent and usable, with no blank screens or blocking errors, and the UI adapts to light/dark themes |
| Documentation and information | The app description is true and accurate, and any necessary external service (such as an AI API) is declared with an explanation attached |
Review results and release
- Approved: the system signs the app package automatically and publishes it publicly in the GM Desktop App Center, where every user can search for it and install it with one click.
- Rejected: if there are security vulnerabilities, unreported external network calls, or severe functional defects, the review team notes the rejection reasons and suggested changes in detail in the console; after you fix them, push the code again and resubmit for review.
