fix(prepare): destFile path separator (#1455)

This commit is contained in:
エリス 2022-07-04 22:27:11 +09:00 committed by GitHub
parent f38e8eb3d0
commit e5b7e8ab26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));