Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit a150047

Browse files
committed
chore(forge): add a pre-make wait as well
1 parent 4f67298 commit a150047

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/desktop/electron-forge/forge.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const config: ForgeConfig = {
213213
}
214214

215215
// Wait for a while to ensure the file system operations are completed.
216+
console.log("Waiting for file system operations to complete...");
216217
await new Promise(resolve => setTimeout(resolve, 3000));
217218
},
218219
// Gather all the artifacts produced by the makers and copy them to a common upload directory.
@@ -239,6 +240,10 @@ const config: ForgeConfig = {
239240
fs.copyFileSync(artifactPath, outputPath);
240241
}
241242
}
243+
},
244+
preMake: async () => {
245+
console.log("Waiting for file system operations to complete...");
246+
await new Promise(resolve => setTimeout(resolve, 3000));
242247
}
243248
}
244249
};

0 commit comments

Comments
 (0)