prepare_native_app_files: Prepare native Shiny app files for packaging

View source: R/export-stages.R

prepare_native_app_filesR Documentation

Prepare native Shiny app files for packaging

Description

Copies the app source into ⁠destdir/shiny-app/⁠, detects package dependencies, and writes runtime + dependency manifests that the Electron backends will consume at launch time.

Usage

prepare_native_app_files(
  appdir,
  destdir,
  app_type,
  runtime_strategy,
  platform,
  arch,
  config,
  verbose = TRUE,
  dependencies = NULL
)

Arguments

appdir

Character. Source Shiny app directory.

destdir

Character. Export destination.

app_type

Character. "r-shiny" or "py-shiny".

runtime_strategy

Character. Resolved runtime strategy.

platform, arch

Character. Target platform / architecture.

config

List. Effective merged configuration.

verbose

Logical.

dependencies

List or NULL. The app's dependencies when the caller has resolved them already, as resolve_app_dependencies() returns them. NULL resolves them here.

Value

List with elements converted_app (path) and dependencies (NULL or the resolved dep info).


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