Landing page desktop upload

From Vrooli/Vrooli · View interactive version

Landing page desktop upload is an AI agent skill from the GitHub repository Vrooli/Vrooli. 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.

How to use this skill

Skill file

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:


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:

Out of scope:


3. Required Inputs

Optional input:

Conditional input:

Additional required prerequisites (inherited from landing-page-deploy-setup; do not guess):


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:

Linux packaging target note (common failure):

Stop condition:

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):

```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

```

Pass condition:

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):

Sequencing rule:

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:

Pass condition:

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:

Stage 4: Post-release verification

Verify update manifest endpoint(s) based on platform.

Primary rule:

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:

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:

When redeploying the same version:

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):

Pass condition:


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


7. Output Expectations

Must produce:

May update:

Must not:


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:

  1. Inspect pipeline status:
scenario-to-desktop --auto-start pipeline status <pipeline_id> --verbose
  1. Confirm build artifacts exist in the pipeline output:

Bundle stage fails with `BUNDLE_PACKAGE_ERROR` / `directory not empty`

Symptom:

Action:

```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:

First check:

scenario-to-desktop pipeline active {{TARGET}} --json

Cases:

```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}}

```

```bash

scenario-to-desktop --auto-start pipeline status <pipeline_id> --verbose

```

```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}}

```

  1. 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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.