copy_installer_license: Copy the Windows installer license into the build

View source: R/build-templates.R

copy_installer_licenseR Documentation

Copy the Windows installer license into the build

Description

electron-builder runs inside the generated project, so the file named by installer.license_file is copied to installer_license_path(), which build_nsis_config() references as the NSIS license. export() has already resolved the path against the app directory; a config passed directly to build_electron_app() uses paths relative to the working directory. A plain-text copy is passed through add_utf8_bom() so NSIS reads it as UTF-8.

Usage

copy_installer_license(output_dir, config)

Arguments

output_dir

Character. The Electron project directory.

config

List. The effective configuration.

Value

Invisibly, the path of the copy, or NULL when no license is set.


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