33// SPDX-License-Identifier: MIT
44
55use super :: {
6- configure_cargo, delete_codegen_vars, ensure_init, env, log_finished , open_and_wait , with_config ,
7- MobileTarget ,
6+ configure_cargo, delete_codegen_vars, ensure_init, env, inject_assets , log_finished ,
7+ open_and_wait , with_config , MobileTarget ,
88} ;
99use crate :: {
1010 build:: Options as BuildOptions ,
@@ -152,14 +152,16 @@ fn run_build(
152152 let out_dir = bin_path. parent ( ) . unwrap ( ) ;
153153 let _lock = flock:: open_rw ( out_dir. join ( "lock" ) . with_extension ( "android" ) , "Android" ) ?;
154154
155+ let tauri_config = get_config ( options. config . as_deref ( ) ) ?;
156+
155157 let cli_options = CliOptions {
156158 features : build_options. features . clone ( ) ,
157159 args : build_options. args . clone ( ) ,
158160 noise_level,
159161 vars : Default :: default ( ) ,
160162 } ;
161163 let _handle = write_options (
162- & get_config ( options . config . as_deref ( ) ) ?
164+ & tauri_config
163165 . lock ( )
164166 . unwrap ( )
165167 . as_ref ( )
@@ -175,6 +177,8 @@ fn run_build(
175177 . get_or_insert ( Vec :: new ( ) )
176178 . push ( "custom-protocol" . into ( ) ) ;
177179
180+ inject_assets ( config, tauri_config. lock ( ) . unwrap ( ) . as_ref ( ) . unwrap ( ) ) ?;
181+
178182 let apk_outputs = if options. apk {
179183 apk:: build (
180184 config,
0 commit comments