CICD-481 · Electron application build
Encyclopedia · Mobile, desktop and binary distribution · All snippets
Previous · CICD-480 · Next · CICD-482
1. Where it fits
- Placement Electron CI run step.
- Prerequisites approved toolchains and isolated build/signing runner when credentials are required.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
npm ci
npm run package
test -d out3. How it works
A clean install is based on the committed package lock and package manifest. An inconsistent pair is rejected. The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.
4. Verify the result
Configure the package script in package.json and build for each OS on its native runner when required.
Validation syntax-validated (Bash parse). Status definitions.