Customer builds (overview)¶
Audience: team leads and IT admins who want their own branded IDE; end users who wonder why theirs looks different · ~5 min read · Prerequisites: Install, Plugins and extensions
What it is¶
A customer build is a version of the struktJS IDE prepared for one organisation. It has its own name, icon and
welcome text, and only the languages and samples that organisation needs. It is built from the same source as the
standard IDE, driven by one small file called customers/<name>/customer.json. Nothing is forked or copied.
It can be a browser build, a desktop (Electron) build, or both. Building one is a developer or admin job; this page
explains what it can change, what it cannot, and what you will see as a user. Terms are in the
glossary.
When you'd use it¶
- You roll struktJS out to a team and want the product to carry your name, not "struktJS".
- You want people to see only your own languages and examples, not the 50-odd bundled ones.
- You want your own help and support links, onboarding tips, and a different default colour theme.
- You want installers that publish to your own update location.
If you only want a different language plugin set on one machine, you do not need a customer build: see Plugins and extensions.
What a customer build can change¶
| Area | What can be set | What you see |
|---|---|---|
| Identity | Product name, app id, description, homepage, author | The name in the window title, About dialog, menus and installer. |
| Branding | Icon, slogan, About text, "Report Issue…" link, an online documentation link, replacement tips, splash screen | A new icon in the tab, dock/taskbar and splash; your tips on the Welcome page; an extra Help entry Online Documentation… when a documentation link is set. |
| Languages | Keep only a list, or drop a list | Fewer languages in the language picker and Load Sample… list. |
| Samples | Keep or drop bundled samples, and add your own | Your own sample appears next to (or replaces) a built-in one of the same name. |
| Components | Leave out an optional part of the IDE, today live collaboration | No Tools > Collaboration menu, no collaboration settings or status bar item, and the code for it is not in the build. A shared link that joins a session says so instead of doing nothing. |
| Workbench defaults | Default colour theme, a few default settings, which bundled VS Code extensions (such as the Dutch language pack) to leave out | Different first-run theme and settings. |
| Packaging | Where installers publish, installer formats, installer options | Your installer and update source. |
What it cannot change¶
- It cannot add brand-new languages at build time. Languages are added at run time instead, with no rebuild: put a plugin in the dev-plugins folder (see Plugins and extensions).
- It does not sign installers; packaged builds are unsigned unless you set up signing yourself.
- It cannot rename every internal identifier. Preference ids still start with
struktJS.and the model file extension stays.model.pyor.model.js. - Everything that is a preference stays a preference: users can still change theme, fonts and the like on the Preferences page. A customer default is only the starting value.
How it is built (for admins)¶
You need the source repository and Node. The steps, in order:
npm run validate:customer -- customers/<name>/customer.jsonchecks the config against the real language and sample dependencies and refuses anything that would break the build.npm run stage:customer -- customers/<name>/customer.jsonprepares the pruned language and sample set.npm run apply:customer -- customers/<name>/customer.jsonwrites the identity into a handful of tracked files and prints the exact command that reverts them.- Run the normal
npm run build(browser) ornpm run build:electronandnpm run package:electron*(desktop), then revert with the printed command.
To let the installed apps update themselves from a server you run, add an updates block ({ "url": "https://...", "channel": "latest" }) to
customer.json; without it the app never looks for updates. See Updating and uninstalling.
For installers that publish to your own location, npm run stage:customer:packaging -- customers/<name>/customer.json
writes an overlay for the packaging step. A complete example lives in customers/example/.
Because step 3 edits tracked files, run customer builds on a dedicated machine, branch or CI job, not in your everyday development checkout. All fields and edge cases are in the developer page Customer builds.
If you are an end user of a customer build¶
- The product has a different name and icon, and may have fewer languages and samples. Everything else works the same, and the rest of this guide applies. A few labels in the guide say "struktJS"; in your build they use your product name.
- If a language or sample mentioned in this guide is missing, your administrator removed it from the build.
- Help > Online Documentation… (if present) opens your organisation's own documentation.
- Updates come from your organisation's installer or server, not from struktJS.
Every control¶
A customer build has no screen of its own. These are the places where its settings show up:
| # | Where | What it does | Shortcut | Gotcha |
|---|---|---|---|---|
| 1 | Window title, About dialog | Show the product name and About text. | none | Technical details in About (version, API compatibility) stay as they are. |
| 2 | Welcome page tips | Show the customer's tips instead of the default set. | none | A customer tip set replaces, not extends, the defaults. |
| 3 | Help > Online Documentation… | Opens the customer's documentation link. | Ctrl/Cmd+K, H, O | Present only when the build sets one. |
| 4 | Report Issue… | Opens the customer's support link. | Ctrl/Cmd+K, H, I | Defaults to struktJS's issue tracker. |
| 5 | Load Sample… and language picker | List only the kept languages and samples. | none | Missing items were removed at build time. |