Table of Contents

Packaging & Launch

What ends up in a package, how the engine gets started on a device, and where each piece lands.

Table of Contents

The Two Staging Areas

Generate: Staging the SDK

Packaging: Building the Device Image

The Generated UI Start Script

Platform-Specific Start Script Steps

Licensing

What Can Silently Produce a Blank Display

The Two Staging Areas

Storyboard is staged twice, for two different purposes:

Desktop staging Package staging
When Generate (--AddStoryboardSDK) Packaging (installer plugin)
Engine used storyboardDebugEngineFolder storyboardEngineFolder
Lands in .platform_support/<Desktop>/SDK/Ahsoka.Storyboard/ .appinfo/Storyboard/ inside the package
Launched by LaunchStoryboard.bat / .sh, run by the client The generated UI start script

Both stages also export the .gapp, into export_<n>/ folders numbered from one in launch configuration order.

Generate: Staging the SDK

--AddStoryboardSDK runs on every Generate, whether or not the model generator is enabled. It:

  1. Copies the target engine into .platform_support/<platform>/SDK/Ahsoka.Storyboard/, with a CMakeLists.txt so a C++ build can find it.
  2. Copies the desktop engine into the Desktop platform folder.
  3. Copies each Storyboard project into export_<n>/ beside the desktop engine.
  4. Runs Storyboard Designer's exporter on each one to produce the .gapp.
  5. Writes a launch script next to the desktop engine.

For a Dotnet application the staging root is the project's obj/ folder; for Cpp it is the project folder itself.

The desktop engine is staged into a single Desktop folder regardless of host — Windows, Linux and macOS share it, because the platform family collapsed to one and the OS is now only a qualifier. The host determines only which flavour of launch script is written:

Host Script Notes
Windows LaunchStoryboard.bat Each engine started with start "" /b
Linux, macOS LaunchStoryboard.sh Each engine backgrounded with &
Note

start "" /b on Windows is not cosmetic. A trailing & in a batch file is a command separator, not a background operator, so a script written that way would run each engine synchronously and only reach the second display once the first engine exited. /b also keeps the engine in the same console so its output still reaches the captured pipe.

On a desktop, sbengine's stdout and stderr are routed into the Ahsoka log under the Storyboard.SBEngine group, so engine startup errors and .gapp load failures appear inline with your application's log instead of vanishing into a detached console. The group is opted in to Severity.Low automatically unless you have configured it yourself.

Packaging: Building the Device Image

The installer plugin runs three steps.

Prerequisites. Checks that the project has a Storyboard Runtime licence (for packages that ship to a device), that StoryboardConfiguration.json exists beside PackageInfo.json, and that the configured engine folder exists. A missing engine folder is a warning, not a failure.

Engine. Copies storyboardEngineFolder into .appinfo/Storyboard in the build output. If the engine folder resolves to the same path as the Storyboard install root — which happens when no engine has actually been selected — packaging fails with Missing Engine Folder.

Application export. For each launch configuration, copies the project into .appinfo/Storyboard/export_<n>/ and runs Designer's exporter:

"Crank Storyboard" -application com.crank.gdt.ui.gappexport -nosplash
    model=<projectPath>/<appName>.gde
    output=<root>/export_<n>/<appName>.gapp

Finding Designer is derived from the engine folder: the path is trimmed at Storyboard_Engine to get the install root, and the launcher is located beneath it.

Note

The launcher search deliberately matches only files with no extension (Linux), .exe (Windows), or .app (macOS). A Designer install also contains Crank Storyboard.ini beside the launcher, and on Linux enumeration returns the .ini first — which would then be "run" as the exporter and silently produce nothing.

The resulting package layout:

/usr/local/Ahsoka/current/
├── .appinfo/
│   └── Storyboard/
│       ├── bin/sbengine
│       ├── lib/              ← LD_LIBRARY_PATH points here
│       ├── plugins/          ← SB_PLUGINS points here
│       ├── export_1/Dashboard.gapp
│       └── export_2/Detail.gapp
└── ...your application...

The Generated UI Start Script

The installer contributes to the platform's UI start script rather than owning it. Two environment values are exported:

Variable Value
LD_LIBRARY_PATH /usr/local/Ahsoka/current/.appinfo/Storyboard/lib
SB_PLUGINS /usr/local/Ahsoka/current/.appinfo/Storyboard/plugins

Then one command per launch configuration:

chmod +x /usr/local/Ahsoka/current/.appinfo/Storyboard/bin/sbengine
/usr/local/Ahsoka/current/.appinfo/Storyboard/bin/sbengine -orender_mgr,zorder=2000  /usr/local/Ahsoka/current/.appinfo/Storyboard/export_1/Dashboard.gapp &

This runs before your application, which is why the client does not start the engine on a device. A launch configuration that was skipped during export contributes no command here either.

Important

Scripts are written with LF line endings regardless of the host doing the packaging, because they run on the device. This is done by appending \n explicitly rather than by setting TextWriter.NewLine, which the trimmer removes from the self-contained command-line build.

Platform-Specific Start Script Steps

The surface argument differs by family:

Family Argument Why
Pro / Flex (OpenViewLinuxPro) -orender_mgr,zorder=<surfaceId> Renders via ivi_application, where zorder is the IVI surface id
Select (OpenViewLinux) -orender_mgr,xdg_app_id=<appId> Renders via xdg_shell; weston's ivi-id-agent matches the app id to a rule the layer manager writes

On Select the app id is looked up from the same screen configuration the package is built from, so it cannot drift from the weston.ini rule. A non-numeric surfaceId is passed through unchanged.

Select also gets two workarounds:

The xdg surface shim. wayland_xdg_fix.so is LD_PRELOADed onto the sbengine command inline, not exported. An exported LD_PRELOAD would land in the shared environment block used by both the UI and the .NET application start scripts and propagate into every short-lived helper the script spawns — each needlessly mapping the shim.

The touch hold. The Atmel maXTouch registers /dev/input/event0 early, but weston's seat bring-up then power-cycles the controller for about a second. The engine's evdev plugin opens the node once at startup and never retries, so landing mid-cycle leaves touch dead for the session. The script waits for the node (bounded, ~5 s), then holds it open until the engine has it in its fd set, releasing immediately afterwards.

Licensing

A package that ships to a device must have a Storyboard Runtime licence selected on the project. Without it, packaging throws:

Invalid Project Licenses.  In order to generate this package, you must select a
Project and 'Include a Storyboard Runtime.'

The check asks whether this is a target package rather than pattern-matching the platform name, so desktop packages are unaffected as device families change.

What Can Silently Produce a Blank Display

Each of these logs a warning and continues:

Condition Logged by Result
Launch configuration with empty generatorProjectPath or storyboardAppName Generate and packaging No model objects, no export, no engine command
custom.evt missing from a project Generate No model classes for that screen
Designer not found under the install root Generate and packaging No .gapp exported
Export ran but produced no .gapp Generate and packaging Engine starts with nothing to load
Engine folder has no bin/ Packaging Engine missing from the package

None of these fail the build. When a display comes up blank, the Generate and packaging logs are the first place to look — the reason is almost always there.

Next: Driving Multiple Displays.