跳到主要內容
Pumati開發者文件
Language / 語言: 繁體中文
登入

此頁面尚未提供繁體中文版本,因此以英文顯示。

Guides

test-builds.md

Test build distribution

Evaluation requests use the web format by default. Upload a web build (HTML, Flutter web, Expo web, Unity or Godot WebGL) as a zip and testers open it right inside Pumati without installing anything. Not asking for an install means more people take part, and it avoids store rules about rewarding other apps' installs and the risks of APKs. Use builds testers install below only when a test needs a real device.

Upload a web build (default)

  1. Build for the web and zip the output folder. index.html must be at the top (or in the zip's only folder).
  2. On the web: the app's Builds page, "Upload a web build", with the zip, a version and the screen it is made for (mobile 390×844 / desktop 1280×800). With MCP: create_upload with kind: "web_build", send the zip with curl -sS -T build.zip "<upload_url>", then register_build with platform: "web", install_type: "hosted" and the upload_id.
  3. Target the Web platform in the mission and link the build. A mission targeting the web is shown to every tester with a registered device (phones too).
  4. Testers holding a seat press "Open web build" on the mission page to open it inside Pumati, in a device frame or full screen.
FrameworkHow to build
HTML and JSThe static files as they are. Link files by relative paths (style.css, not /style.css).
Flutter webflutter build web --release --no-web-resources-cdn, then zip build/web. CanvasKit must come from the zip, not a CDN. <base href> is ignored: paths resolve from index.html.
Expo webnpx expo export --platform web, then zip dist. Leave experiments.baseUrl in app.json empty, and make any absolute paths left (/_expo/…) relative.
Unity WebGLZip the folder a WebGL build (Build Settings → WebGL) makes. Compression Format Brotli or Gzip (Pumati sends them with Content-Encoding) or Disabled; no Decompression Fallback needed. Leave multithreading off in Player Settings → Publishing Settings (see single-threaded builds below).
Godot 4Export for the Web with Thread Support off and zip the folder (see single-threaded builds below).
C and C++ (Emscripten)Build without -pthread (-sUSE_PTHREADS) and zip the .html, .js, .wasm and .data together.

Advanced: builds testers install

The advanced option, for when a test needs a real device. Pumati never installs or hosts your app, and takes no APK files. You register a link from a trusted distribution channel that testers can already open, and a mission links to the builds it tests. An already deployed web address (web) is registered here too (testers open it in a new tab).

Platforminstall_typeWhat to register
iOStestflightA TestFlight public link (https://testflight.apple.com/join/…) for an external-testing group. Register with review_status: pending until Apple's beta review passes.
Androidplay_closedA Google Play test link: a closed or open test opt-in (https://play.google.com/apps/testing/<package>), internal app sharing (…/apps/internaltest/…) or the store listing (…/store/apps/details?id=<package>). A closed test needs testers' email addresses on its list; Pumati does not add testers to Play Console for you.
AndroidfirebaseA Firebase App Distribution tester link (https://appdistribution.firebase.dev/i/…).
WebwebAn https URL. If it needs a login, put a test account in the task.

Checked at publish

  • Every platform the mission targets has a linked build, else BUILD_REQUIRED.
  • No linked build expires before the mission ends, else BUILD_EXPIRES_TOO_SOON. TestFlight builds expire 90 days after upload, but without expires_at Pumati assumes the build was uploaded when you register it (registration + 90 days). For a build uploaded earlier, pass its real expires_at.
  • No iOS build is still waiting for beta review, and no Android or web build for an operator's review, else BUILD_NOT_APPROVED.

Build safety checks

  • Android takes only the two kinds of link above. Other hosts and direct .apk links are refused with UNTRUSTED_SOURCE. Operators review APK links registered before this rule.
  • Your first Android or web build waits for a Pumati operator (review_status: pending). Once one is approved, later builds are usable at once.
  • Android and web links are checked for malware with VirusTotal when registered; the link (private test links too) is sent to VirusTotal. A malicious verdict refuses the build with UNSAFE_LINK; if the check fails, the build is registered but waits for an operator.
  • Testers can report "Something's wrong with this app" from the mission page. Reports from 3 different testers holding a seat pause recruiting until an operator looks, and you're told by email and push (recruiting_paused_at in get_test); testers who already hold a seat carry on.
  • APK-link builds registered before this rule can't be linked to new missions or published (UNTRUSTED_SOURCE). Register a new build with a Google Play or Firebase link.

Retest a fix

After a fix, register_build the new build, record_resolution with fixed_by_agent and that build_id, then create_retest with the feedback ids and publish it. The retest asks new testers to check the same problems; it does not change the original feedback's state. Agents can't set verified_by_human, and marking feedback verified on the web isn't available yet either: today the feedback inbox offers planned, on hold and reopen. Read the retest's feedback with list_feedback to judge the fix.