Build and deployment
Build a portable HTML5 archive after checking the source project in Live Preview. The build packages the interface; deploying it and verifying its external connections are separate steps.
This guide covers AVstudio Editor NG 27.0.29.
Configure output
- In Explorer, open AVstudio UI → avstudio.config.
- Use the AVS Forms Editor to review the project settings below.
- Choose the archive format required by your target and save the configuration before building.
| Forms Editor field | Project field | Purpose |
|---|---|---|
| Project name | name | Human-readable project name, also recorded in build metadata. |
| Build archive name | archiveName | Base name of the generated archive. Select the extension separately. |
| Format selector beside archive name | archiveType | zip for HTML5 delivery or ch5z for a compatible Crestron package. Saved values are dotless in 27.0.29; dotted legacy values remain accepted. |
| Splash screen image | splashScreen | Select an image from assets/images/ using the dropdown. |
| Theme | theme | Active project theme; select an existing theme file. |
| Production log level | loglevel | Logging setting included in exported builds. |
| Start page | startPage | Page the exported project opens initially; select an existing page. |
The sample screenshot uses debug for development. Review the production logging choice for the delivered project. The workspace's Set Live Preview log level command is separate and does not change this field.
For example, use project name Conference Room, archive name conference-room, ZIP format, theme theme/darkhuddle.theme, start page pages/start.page, and production logging warn. Select these values in the project configuration editor.
Use references to actual project files. Choose .zip for an HTML5 archive or .ch5z for a Crestron deployment package.
Choose the archive format
| Format | Delivery workflow |
|---|---|
.zip | Extract the HTML5 application, or import the archive if the chosen runtime supports archive import. Preserve the generated directory structure. |
.ch5z | Use a Crestron-compatible package deployment workflow. The package contains an inner .ch5 archive; it is not simply a web directory with a different extension. |
Changing the filename extension after building does not convert one package format to the other. Select the required format in the configuration and build again.
Build
- Save the source files and run Run Project Health Check.
- Resolve project errors and test the main workflow in Live Preview.
- Run Build project from the Command Palette or status bar. If several
env/*.envfiles exist, select the environment for this build; cancelling stops it. One file is used automatically. This choice is independent of the editor’s active env. - Wait for Build complete and read the reported output path.
- Expand AVstudio UI → build in Explorer and locate the archive named using
archiveNameandarchiveType.
The sample configuration produces AVstudio UI/build/avstudio-docs-sample.zip:
A saved page or a working Live Preview is not a new exported release. Run Build project after the changes you intend to deliver, then check the completion message and the generated artifact.
The build command replaces the previous build output in build/. Copy a release you need to keep to another location before running the next build.
Inspect the output
Open or extract the archive into a separate location for inspection. Keep its files together rather than copying only the HTML entry point. Check the generated application, project data, assets, and build metadata. Exact contents depend on the project and archive format.
Each archive includes avstudio-meta.md with the extension version, project name, platform, Node version, build time, and author. Keep this metadata with the release for troubleshooting.
Environment values and custom content
The exported application uses the environment selected for that build. Check connector destinations and any env-driven name, theme, start page, or archive setting. Resolved configuration is delivered to the runtime; keep release archives subject to the same handling as their included connection values. See Environment files.
Custom Element folders and their local dependencies are packaged with the application. Test component events, the runtime API, audio actions, visibility, and animations in the exported runtime as well as preview. External assets and services still need network access.
Deploy to the target
Extract a .zip and use the deployment/import process provided by your HTML5 host or runtime. A .ch5z is a Crestron package with an inner .ch5 archive; use a compatible deployment workflow rather than treating it as an ordinary web directory.
For AVstudio runtimes, continue with App Container documentation or AVS Touch Panel documentation. Deployment details depend on the selected device and runtime.
Preserve a release
Copy a release you intend to keep out of AVstudio UI/build/ before another build. Keep its metadata, the editable source revision, and a short note describing the intended target and changes. Changing only archiveName does not protect an earlier artifact left inside the build directory.
Use the original archive for delivery and a separate extracted copy for inspection. If a previous release needs to remain available for rollback, retain that known working archive alongside the corresponding source version.
Acceptance check
Verify the start page, fonts, icons, media, navigation, overlays, data loading, commands, feedback, and behavior after relaunch. Test the target's connection to each external system. Preview success on your workstation is only one part of this check.
Keep source files in addition to the archive. Build output is a delivery artifact and does not replace the editable project.
Use the same sequence for each delivered target:
- Launch the exported application and confirm the configured start page and theme.
- Check navigation and return paths, including subpages, overlays, and global slots.
- Check fonts, icons, images, and media on the target rather than only on the workstation.
- Load real data and test both outgoing commands and incoming feedback.
- Relaunch the application and verify its initial state and reconnection behaviour.
- Record the tested archive and target details with the release.
Troubleshooting
| Symptom | What to check |
|---|---|
| Build command is unavailable | Open the correct workspace and confirm that NG recognizes the AVstudio project. |
| No new archive appears | Check the completion/error notification, current project, and output path. Do not deliver an old archive as the result of a failed build. |
| Wrong filename or format | Save Build archive name and format in avstudio.config, then rebuild. |
| Export opens the wrong page | Review Start page and confirm its reference points to the intended existing page. |
| Theme or assets are missing | Run the health check, verify the referenced files, and preserve the extracted archive's structure. |
| Logging differs from Live Preview | Review Production log level; preview logging is stored separately in workspace state. |
| Controls work in preview but fail on the target | Check target network access, credentials, integration support, and incoming feedback independently. |
| A previous release disappeared | Build output is replaced. Keep retained releases outside build/. |
| A CH5Z cannot be used as an ordinary web folder | Use the target's compatible package deployment workflow. |
For source handoff, include the editable project and the extension version used to build it. The generated application and its metadata support deployment and diagnosis, but do not replace the source files needed for further editing.


