From e5b7e8ab266c8f9de83923430be77c62499810a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Mon, 4 Jul 2022 22:27:11 +0900 Subject: [PATCH] fix(prepare): destFile path separator (#1455) --- lib/prepare.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prepare.js b/lib/prepare.js index a082bf2d84..16f3c1f41f 100644 --- a/lib/prepare.js +++ b/lib/prepare.js @@ -303,7 +303,7 @@ function updateProjectAccordingTo (platformConfig, locations) { events.emit('log', 'Multiple candidate Java files that extend CordovaActivity found. Guessing at the first one, ' + java_files[0]); } - const destFile = java_files[0]; + const destFile = path.normalize(java_files[0]); // if package name has changed, path to MainActivity.java has to track it const newDestFile = path.join(locations.root, 'app', 'src', 'main', 'java', androidPkgName.replace(/\./g, '/'), path.basename(destFile));