check_single_target: Stop when a runtime strategy cannot build every target

View source: R/export-stages.R

check_single_targetR Documentation

Stop when a runtime strategy cannot build every target

Description

The bundled and auto-download strategies embed a runtime, or a manifest for one, for a single platform and architecture, and it would be packaged into every installer. A build that uses either one needs a single target. export() checks this before anything is copied; build_electron_app() and build_multi_app() check it again for direct callers.

Usage

check_single_target(
  strategies,
  platform,
  arch,
  apps = NULL,
  from_config = character(0)
)

Arguments

strategies

Character vector. The runtime strategy of the app, or of each app in a suite.

platform, arch

Character vectors. The resolved targets.

apps

List or NULL. A suite's apps entries, in the order of strategies, to name the app in the error.

from_config

Character vector. The settings that supplied the targets, from resolve_build_targets().

Value

Invisibly TRUE. Stops with an error of class shinyelectron_single_target otherwise.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.