Skip to content

Commit d8208e6

Browse files
committed
Fix App Resources copying operation
1 parent bb1979d commit d8208e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/platform-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ export class PlatformService implements IPlatformService {
285285
return (() => {
286286
let platformData = this.$platformsData.getPlatformData(platform);
287287
let appDestinationDirectoryPath = path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME);
288-
let appResourcesDestination = platformData.platformProjectService.getAppResourcesDestinationDirectoryPath().wait();
289-
this.$fs.ensureDirectoryExists(appResourcesDestination).wait(); // Should be deleted
290288
let appResourcesDirectoryPath = path.join(appDestinationDirectoryPath, constants.APP_RESOURCES_FOLDER_NAME);
291289
if (this.$fs.exists(appResourcesDirectoryPath).wait()) {
292290
platformData.platformProjectService.prepareAppResources(appResourcesDirectoryPath).wait();
291+
let appResourcesDestination = platformData.platformProjectService.getAppResourcesDestinationDirectoryPath().wait();
292+
this.$fs.ensureDirectoryExists(appResourcesDestination).wait();
293293
shell.cp("-Rf", path.join(appResourcesDirectoryPath, platformData.normalizedPlatformName, "*"), appResourcesDestination);
294294
this.$fs.deleteDirectory(appResourcesDirectoryPath).wait();
295295
}

0 commit comments

Comments
 (0)