Tools focus: Landing Page Desktop Upload
Orchestrate end-to-end desktop release delivery: ensure LPBS deployment health, ensure LPBS upload readiness, then run scenario-to-desktop deploy pipeline and verify update endpoints.
Required reading:
prompt-manager skill read scenario-to-cloudprompt-manager skill read landing-page-deploy-setupprompt-manager skill read scenario-to-desktop
1. When to Use This Tool
| Goal | Use this skill? | Notes |
|---|---|---|
| End-to-end desktop release to LPBS | Yes | This skill coordinates all required subskills |
| Only deploy/update LPBS infrastructure | No | Use scenario-to-cloud directly |
| Only prepare LPBS for uploads | No | Use landing-page-deploy-setup directly |
| Only build desktop artifacts | No | Use scenario-to-desktop directly |
2. Scope Boundaries
In scope:
- Orchestration across cloud health, LPBS readiness, desktop build+deploy
- Gate-based execution with stop conditions
- Post-release update endpoint verification
Out of scope:
- Replacing subskill internals
- LPBS feature/content development
- Non-LPBS deployment targets
3. Required Inputs
{{TARGET}}scenario to package/deploy{{DOMAIN}}LPBS domain{{APP_KEY}}LPBS download app key (stable ID for the specific app release){{PROFILE_TAG}}LPBS remote profile tag (example:prod){{PLATFORMS}}target platforms (example:linuxorlinux,win){{CHANNEL}}update channel (default:stable)
Optional input:
{{RELEASE_ID}}deployment-manager release UUID for traceability. When provided, stored on the LPBS artifact for correlation with DM release records.
Conditional input:
{{APP_NAME}}only required when{{APP_KEY}}does not already exist and must be onboarded
Additional required prerequisites (inherited from landing-page-deploy-setup; do not guess):
- Local LPBS admin credentials (
email,password) if local admin session is not already active - Remote LPBS admin credentials (
email,password) if the remote profile session is not already active - Canonical LPBS service secret (
LPBS_SERVICE_SECRET) used by the local LPBS runtime (must match the runtime’s configured value)
4. Orchestration Flow
Run stages in order. Each stage has a strict pass condition.
Stage -0 (Recommended): Input discovery (fast fail)
Why: this skill requires stable selectors (remote profile tag + app key). Prefer discovering them deterministically over guessing.
# Discover local remote profile tags
landing-page-business-suite --auto-start remote-profiles-list --json
# Confirm remote app keys exist on the deployed LPBS (source of truth)
landing-page-business-suite --auto-start remote-profiles-download-apps-list --profile-tag {{PROFILE_TAG}} --json
Stage 0 (Recommended): Local tool health (fast fail)
These checks catch the most common "CLI can't reach its API" issues early.
scenario-to-cloud --auto-start status
landing-page-business-suite --auto-start status
scenario-to-desktop --auto-start status
Stage 0.5 (Recommended): Desktop build prerequisites gate (fast fail)
Why: scenario-to-desktop status being healthy does not guarantee your target scenario can build.
Timeout guidance:
- Real desktop builds can exceed the default 600s. Prefer
--timeout 1800in Stage 3 unless the user requests otherwise.
Linux packaging target note (common failure):
- If the target scenario’s Electron config includes Linux
debtargets, Linux builds may requirefpm(and Ruby). - If you do not need
.debdistribution, prefer limiting the scenario to AppImage-only targets to avoidfpmas a hard prerequisite.
Stop condition:
- If the pipeline fails with
BUILD_FAILEDand mentionsfpm, do not proceed to deploy verification. Fix packaging targets or prerequisites first.
Stage 1: LPBS deployment convergence (`scenario-to-cloud`)
Check LPBS deployment by selector:
scenario-to-cloud --auto-start deployment health --domain {{DOMAIN}} --scenario landing-page-business-suite
If missing/unhealthy, converge:
scenario-to-cloud --auto-start redeploy \
--domain {{DOMAIN}} \
--scenario landing-page-business-suite \
--if-needed --preflight --wait
Freshness rule (fingerprint drift safe-guard):
- If health is
ok=truebut freshness isoutdated, run a single convergence attempt with a forced bundle rebuild:
```bash
# If you already have a deployment ID from the health output, prefer the tool's direct recommendation:
scenario-to-cloud --auto-start deployment execute <deployment_id> --force-bundle
# Selector-first alternative (no deployment id required):
scenario-to-cloud --auto-start redeploy \
--domain {{DOMAIN}} \
--scenario landing-page-business-suite \
--if-needed --preflight --wait --force-bundle
```
- If health remains
healthybut freshness is still fingerprint-onlyoutdatedafter one--if-neededconvergence attempt, stop automatic retries and record the drift risk before proceeding.
Pass condition:
- Deployment health is successful for
landing-page-business-suiteon{{DOMAIN}}.
Stage 2: LPBS upload readiness convergence (`landing-page-deploy-setup`)
Run the setup skill gates (local LPBS started, admin session, storage test, remote profile tested, LPBS_SERVICE_SECRET set), then run optional app gate for the release {{APP_KEY}}.
Targeting rule (do not skip):
- All
landing-page-business-suite ...commands in Stage 2 are intended to run against the local LPBS control-plane instance (the onescenario-to-desktopdeploys through). - The remote deployed LPBS at
{{DOMAIN}}is validated indirectly via the remote profile session (remote-profiles-*andremote-profiles-proxy). - Do not point
--api-baseathttps://{{DOMAIN}}for Stage 2 unless you are intentionally operating the remote instance directly and have an admin session there.
Sequencing rule:
landing-page-business-suite admin-loginmust succeed before running anylanding-page-business-suite admin-*orlanding-page-business-suite remote-profiles-*commands.
Minimal readiness check (preferred; single contract):
landing-page-business-suite --auto-start deploy-readiness \
--profile-tag {{PROFILE_TAG}} \
--domain {{DOMAIN}} \
--app-key {{APP_KEY}} \
If any readiness check fails:
- Stop release execution
- Follow
landing-page-deploy-setupto converge
Pass condition:
deploy-readinesspasses for{{PROFILE_TAG}}+{{APP_KEY}}(includes remote storage and remote app-key gates).
Stage 3: Build + deploy desktop artifact (`scenario-to-desktop`)
Run deploy pipeline:
scenario-to-desktop --auto-start pipeline run {{TARGET}} \
--platforms {{PLATFORMS}} \
--clean --wait --timeout 1800 \
--deploy-to landing-page-business-suite \
--remote-profile {{PROFILE_TAG}} \
--app-key {{APP_KEY}}
When {{RELEASE_ID}} is available (from deployment-manager), pass it for traceability:
scenario-to-desktop --auto-start pipeline run {{TARGET}} \
--platforms {{PLATFORMS}} \
--clean --wait --timeout 1800 \
--deploy-to landing-page-business-suite \
--remote-profile {{PROFILE_TAG}} \
--app-key {{APP_KEY}} \
--release-id {{RELEASE_ID}} \
--channel {{CHANNEL}}
The --release-id flag stores the DM release UUID on the LPBS artifact for end-to-end traceability. The --channel flag maps to the LPBS variant_key (e.g., stable → default, beta → beta). Both are optional; omitting them preserves backward compatibility.
If this fails, troubleshoot in scenario-to-desktop.
Pass condition:
- Pipeline completes successfully through deploy stage.
Stage 4: Post-release verification
Verify update manifest endpoint(s) based on platform.
Primary rule:
- Prefer the LPBS verification endpoint for automated checks (fastest, most reliable).
- Fall back to manifest URL checks when the verification endpoint is not available.
Option A: Verification endpoint (preferred)
# Lightweight check — confirms version+sha512 match
curl -fsS "https://{{DOMAIN}}/api/v1/updates/{{APP_KEY}}/verify?channel={{CHANNEL}}&platform={{PLATFORM}}&expected_version={{VERSION}}"
# Deep check — also verifies S3 object accessibility and presign generation
curl -fsS "https://{{DOMAIN}}/api/v1/updates/{{APP_KEY}}/verify?channel={{CHANNEL}}&platform={{PLATFORM}}&expected_version={{VERSION}}&deep=true"
Response fields:
match(bool): whether actual version and sha512 match expectedactual_version,actual_sha512: what the endpoint currently servesartifact_accessible(deep only): S3 HEAD check passedpresign_valid(deep only): presigned URL generation succeeded
Option B: Manifest URL check (fallback)
Electron-updater manifest filename mapping:
| Platform | Manifest file |
|---|---|
| win | latest.yml |
| mac | latest-mac.yml |
| linux | latest-linux.yml |
# Linux example
curl -fsS "https://{{DOMAIN}}/api/v1/updates/{{APP_KEY}}/{{CHANNEL}}/latest-linux.yml"
Note:
- Some deployments may return
405forHEADrequests on manifest URLs. UseGET(curl -fsS ...) as the authoritative check. - Manifests now include
releaseNoteswhen release notes were provided during upload.
When redeploying the same version:
- Confirm
sha512and/orreleaseDatechanges (don’t rely only onversion).
Channel discovery
To enumerate available channels and their latest versions per platform:
curl -fsS "https://{{DOMAIN}}/api/v1/updates/{{APP_KEY}}/channels"
Returns [{channel, platform, version, updated_at}].
Discovery fallback (when manifest URL returns 404 but Stage 3 succeeded):
- Run
scenario-to-desktop pipeline status <pipeline_id> --verboseand use the printed update URL to confirm you’re checking the correct domain/app key.
Pass condition:
- Verification endpoint reports
match: truefor each platform in{{PLATFORMS}}, OR - Manifest request(s) succeed for each platform in
{{PLATFORMS}}.
5. Decision Table
| Stage failure | Next action |
|---|---|
| Stage 1 fails | Use scenario-to-cloud convergence/debug flow; do not continue |
| Stage 2 fails | Use landing-page-deploy-setup to fix prerequisites; do not continue |
| Stage 3 fails | Use scenario-to-desktop troubleshooting (preflight, pipeline diagnostics) |
| Stage 4 fails | Check LPBS app/asset state and update endpoints before declaring release complete |
6. Guardrails
- Do not skip stages.
- Do not use direct scenario binary execution; use lifecycle commands.
- Do not run deploy flags speculatively; only deploy when user requested release.
- Use
--waitfor pipeline execution. - Keep command responsibility boundaries: cloud in
scenario-to-cloud, setup inlanding-page-deploy-setup, packaging/deploy inscenario-to-desktop.
7. Output Expectations
Must produce:
- A released desktop artifact linked to
{{APP_KEY}} - Verified update manifest availability at LPBS domain
May update:
- LPBS deployment state (via
scenario-to-cloud) - LPBS setup state (via
landing-page-deploy-setup) - Desktop pipeline/build records (via
scenario-to-desktop)
Must not:
- Bypass prerequisite gates
- Mutate unrelated LPBS business/content configuration
8. Troubleshooting & Edge Cases
If Stage 3 fails with a generic deploy error (for example deploy failed / INTERNAL_ERROR) and the stage logs do not include a sub-step cause:
- Inspect pipeline status:
scenario-to-desktop --auto-start pipeline status <pipeline_id> --verbose
- Confirm build artifacts exist in the pipeline output:
stages.build.details.artifactsmust include at least one platform path for the platforms you deployed.
Bundle stage fails with `BUNDLE_PACKAGE_ERROR` / `directory not empty`
Symptom:
- Error like:
bundle packaging failed: unlinkat .../bundle/ui/dist/assets: directory not empty
Action:
- Clear stale bundle output for the target scenario, then retry.
```bash
scenario-to-desktop --auto-start bundle clean {{TARGET}}
scenario-to-desktop --auto-start pipeline run {{TARGET}} --clean --wait ...
```
Stage 3 appears stuck / prints nothing
Symptom:
scenario-to-desktop ... --waitprints nothing for a long time, and you can’t tell whether the pipeline is running.
First check:
scenario-to-desktop pipeline active {{TARGET}} --json
Cases:
- If
status=idleandcurrent_state=created: - start it explicitly:
```bash
scenario-to-desktop --auto-start pipeline start {{TARGET}} \
--platforms {{PLATFORMS}} \
--wait \
--deploy-to landing-page-business-suite \
--remote-profile {{PROFILE_TAG}} \
--app-key {{APP_KEY}}
```
- If
status=running: - poll status until it completes:
```bash
scenario-to-desktop --auto-start pipeline status <pipeline_id> --verbose
```
- If
status=failed: - rerun with app output:
```bash
scenario-to-desktop --auto-start pipeline start {{TARGET}} \
--platforms {{PLATFORMS}} \
--wait --show-output \
--deploy-to landing-page-business-suite \
--remote-profile {{PROFILE_TAG}} \
--app-key {{APP_KEY}}
```
- Validate remote prerequisites deterministically (via remote profile proxy):
landing-page-business-suite --auto-start admin-session
landing-page-business-suite --auto-start remote-profiles-download-storage-test --profile-tag {{PROFILE_TAG}} --json
landing-page-business-suite --auto-start remote-profiles-download-apps-list --profile-tag {{PROFILE_TAG}} --json
# Optional: list profiles for debugging
landing-page-business-suite --auto-start remote-profiles-list --json
If remote storage test fails (common symptom: S3 credential errors), stop and hand off to landing-page-deploy-setup remote-storage convergence; do not retry deploy until remote /admin/download-storage/test succeeds.