From 6973e5c6ab37e78b833666f989abee123f65f3af Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Wed, 15 Feb 2017 12:17:51 +0200 Subject: [PATCH] Fix uploading of .nsbuilinfo on Windows When `.npbuildnfo` 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. --- lib/services/platform-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/platform-service.ts b/lib/services/platform-service.ts index 1607ba1710..e04ca66f40 100644 --- a/lib/services/platform-service.ts +++ b/lib/services/platform-service.ts @@ -531,7 +531,7 @@ export class PlatformService implements IPlatformService { private getDeviceBuildInfoFilePath(device: Mobile.IDevice): string { let deviceAppData = this.$deviceAppDataFactory.create(this.$projectData.projectId, device.deviceInfo.platform, device); let deviceRootPath = path.dirname(deviceAppData.deviceProjectRootPath); - return path.join(deviceRootPath, buildInfoFileName); + return helpers.fromWindowsRelativePathToUnix(path.join(deviceRootPath, buildInfoFileName)); } private getDeviceBuildInfo(device: Mobile.IDevice): IFuture {