check_build_host: Stop when a macOS target is built on another system

View source: R/export-stages.R

check_build_hostR Documentation

Stop when a macOS target is built on another system

Description

electron-builder makes macOS apps and their disk images only on macOS. Elsewhere a mac build fails, and build_for_platforms() only reports the failure, so export() would finish without an installer. It calls this before anything is converted instead.

Usage

check_build_host(platform, from_config = character(0))

Arguments

platform

Character vector. The resolved target platforms.

from_config

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

Value

Invisibly TRUE. Stops with an error of class shinyelectron_mac_host when a target is mac and the build machine is not.


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