Skip to main content

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​

  1. In Explorer, open AVstudio UI → avstudio.config.
  2. Use the AVS Forms Editor to review the project settings below.
  3. Choose the archive format required by your target and save the configuration before building.

Project configuration in VS Code with archive name and type, theme, production logging, and start page

Forms Editor fieldProject fieldPurpose
Project namenameHuman-readable project name, also recorded in build metadata.
Build archive namearchiveNameBase name of the generated archive. Select the extension separately.
Format selector beside archive namearchiveTypezip 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 imagesplashScreenSelect an image from assets/images/ using the dropdown.
ThemethemeActive project theme; select an existing theme file.
Production log levelloglevelLogging setting included in exported builds.
Start pagestartPagePage 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​

FormatDelivery workflow
.zipExtract the HTML5 application, or import the archive if the chosen runtime supports archive import. Preserve the generated directory structure.
.ch5zUse 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​

  1. Save the source files and run Run Project Health Check.
  2. Resolve project errors and test the main workflow in Live Preview.
  3. Run Build project from the Command Palette or status bar. If several env/*.env files 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.
  4. Wait for Build complete and read the reported output path.
  5. Expand AVstudio UI → build in Explorer and locate the archive named using archiveName and archiveType.

Build project selected in the VS Code Command Palette

The sample configuration produces AVstudio UI/build/avstudio-docs-sample.zip:

Generated avstudio-docs-sample.zip in the VS Code Explorer build folder

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.

Preserve releases before rebuilding

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:

  1. Launch the exported application and confirm the configured start page and theme.
  2. Check navigation and return paths, including subpages, overlays, and global slots.
  3. Check fonts, icons, images, and media on the target rather than only on the workstation.
  4. Load real data and test both outgoing commands and incoming feedback.
  5. Relaunch the application and verify its initial state and reconnection behaviour.
  6. Record the tested archive and target details with the release.

Troubleshooting​

SymptomWhat to check
Build command is unavailableOpen the correct workspace and confirm that NG recognizes the AVstudio project.
No new archive appearsCheck 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 formatSave Build archive name and format in avstudio.config, then rebuild.
Export opens the wrong pageReview Start page and confirm its reference points to the intended existing page.
Theme or assets are missingRun the health check, verify the referenced files, and preserve the extracted archive's structure.
Logging differs from Live PreviewReview Production log level; preview logging is stored separately in workspace state.
Controls work in preview but fail on the targetCheck target network access, credentials, integration support, and incoming feedback independently.
A previous release disappearedBuild output is replaced. Keep retained releases outside build/.
A CH5Z cannot be used as an ordinary web folderUse 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.