icon_asset_path: Project path of the app icon

View source: R/build-package-json.R

icon_asset_pathR Documentation

Project path of the app icon

Description

copy_brand_assets() copies the app icon into the generated project under this name, and package.json and main.js refer to the copy. The extension is kept, lowercased: up to version 26.14, electron-builder recognizes the format of an icon file only by a lower-case extension, and stops the build when asked to make a Linux icon set from a file named, say, icon.PNG.

Usage

icon_asset_path(icon)

Arguments

icon

Character. Path to the app icon.

Value

Character. The icon path relative to the Electron project, such as "assets/icon.png".


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