Skip to content

Commit 61ca753

Browse files
committed
fix: don't create tempApp when zipping the application
1 parent ecfe620 commit 61ca753

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/services/livesync/ios-livesync-service.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ export class IOSLiveSyncService extends PlatformLiveSyncServiceBase implements I
3030

3131
temp.track();
3232
const tempZip = temp.path({ prefix: "sync", suffix: ".zip" });
33-
const tempApp = temp.mkdirSync("app");
3433
this.$logger.trace("Creating zip file: " + tempZip);
35-
this.$fs.copyFile(path.join(path.dirname(projectFilesPath), `${APP_FOLDER_NAME}/*`), tempApp);
3634

37-
await this.$fs.zipFiles(tempZip, this.$fs.enumerateFilesInDirectorySync(tempApp), (res) => {
38-
return path.join(APP_FOLDER_NAME, path.relative(tempApp, res));
35+
await this.$fs.zipFiles(tempZip, this.$fs.enumerateFilesInDirectorySync(projectFilesPath), (res) => {
36+
return path.join(APP_FOLDER_NAME, path.relative(projectFilesPath, res));
3937
});
4038

4139
await device.fileSystem.transferFiles(deviceAppData, [{

0 commit comments

Comments
 (0)