Skip to content

Commit 2f430e8

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Sync files that are in App_Resources
Fixes #942
1 parent ad7bfe0 commit 2f430e8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/services/usb-livesync-service.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,15 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
7979
let beforeBatchLiveSyncAction = (filePath: string): IFuture<string> => {
8080
return (() => {
8181
let projectFileInfo = this.getProjectFileInfo(filePath);
82-
return path.join(projectFilesPath, path.relative(path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME), projectFileInfo.onDeviceName));
82+
let result = path.join(projectFilesPath, path.relative(path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME), projectFileInfo.onDeviceName));
83+
84+
// Handle files that are in App_Resources
85+
if(filePath.indexOf(path.join(constants.APP_FOLDER_NAME, constants.APP_RESOURCES_FOLDER_NAME)) > -1) {
86+
let appResourcesRelativePath = path.relative(path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME, constants.APP_RESOURCES_FOLDER_NAME, platformData.normalizedPlatformName), filePath);
87+
result = path.join(platformData.platformProjectService.getAppResourcesDestinationDirectoryPath().wait(), appResourcesRelativePath);
88+
}
89+
90+
return result;
8391
}).future<string>()();
8492
};
8593

0 commit comments

Comments
 (0)