Skip to content

Commit ceb0660

Browse files
Fix uploading of .nsbuilinfo on Windows (#2543)
When `.nsbuildinfo` file is uploaded on device, we construct the device file path with `path.join` function. On Windows this function returns path similar to `\\data\\local\\tmp`, which is not working for Unix based OSes (Android in this case). Fix this by converting the path to Unix style.
1 parent b6823f7 commit ceb0660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/platform-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export class PlatformService implements IPlatformService {
531531
private getDeviceBuildInfoFilePath(device: Mobile.IDevice): string {
532532
let deviceAppData = this.$deviceAppDataFactory.create(this.$projectData.projectId, device.deviceInfo.platform, device);
533533
let deviceRootPath = path.dirname(deviceAppData.deviceProjectRootPath);
534-
return path.join(deviceRootPath, buildInfoFileName);
534+
return helpers.fromWindowsRelativePathToUnix(path.join(deviceRootPath, buildInfoFileName));
535535
}
536536

537537
private getDeviceBuildInfo(device: Mobile.IDevice): IFuture<IBuildInfo> {

0 commit comments

Comments
 (0)