Skip to content

Commit 5a3deaf

Browse files
committed
fix(cli): copy processed asset instead of source to android device
1 parent 7c2496c commit 5a3deaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/build/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ impl AppBuilder {
807807

808808
// If the emulator is android, we need to copy the asset to the device with `adb push asset /data/local/tmp/dx/assets/filename.ext`
809809
if self.build.bundle == BundleFormat::Android {
810-
_ = self
811-
.copy_file_to_android_tmp(&changed_file, &bundled_name)
810+
let _ = self
811+
.copy_file_to_android_tmp(&output_path, &bundled_name)
812812
.await;
813813
}
814814
bundled_names.push(bundled_name);
@@ -828,7 +828,7 @@ impl AppBuilder {
828828
bundled_name: &Path,
829829
) -> Result<PathBuf> {
830830
let target = dioxus_cli_config::android_session_cache_dir().join(bundled_name);
831-
tracing::debug!("Pushing asset to device: {target:?}");
831+
tracing::debug!("Pushing asset {changed_file:?} to device: {target:?}");
832832

833833
let res = Command::new(&self.build.workspace.android_tools()?.adb)
834834
.arg("push")

0 commit comments

Comments
 (0)