execute_build_command

Function execute_build_command 

Source
fn execute_build_command(
    profile_name: &str,
    config: &LandConfig,
    env_vars: &HashMap<String, String>,
    build_args: &[String],
) -> Result<(), String>
Expand description

Execute the build command with dual-path environment injection.

This function:

  1. Calls the Maintain binary in legacy mode with merged environment variables
  2. The Maintain binary’s Process() function generates the extensive product name
  3. The Process() function updates tauri.conf.json with the generated name
  4. The actual tauri build command is executed

§Arguments

  • profile_name - The resolved profile name
  • config - Land configuration
  • env_vars - Merged environment variables from all sources
  • build_args - Additional build arguments

§Returns

Result indicating success or failure