Skip to content

Build your personal knowledge base with Trilium Notes

chore(forge): add a pre-make wait as well

Elian Dorana150047432c1
diff --git a/apps/desktop/electron-forge/forge.config.ts b/apps/desktop/electron-forge/forge.config.ts
index 7b47e2dfbd..f9df9cacb1 100644
--- a/apps/desktop/electron-forge/forge.config.ts
+++ b/apps/desktop/electron-forge/forge.config.ts
@@ -213,6 +213,7 @@ const config: ForgeConfig = {
}
// Wait for a while to ensure the file system operations are completed.
+ console.log("Waiting for file system operations to complete...");
await new Promise(resolve => setTimeout(resolve, 3000));
},
// Gather all the artifacts produced by the makers and copy them to a common upload directory.
@@ -239,6 +240,10 @@ const config: ForgeConfig = {
fs.copyFileSync(artifactPath, outputPath);
}
}
+ },
+ preMake: async () => {
+ console.log("Waiting for file system operations to complete...");
+ await new Promise(resolve => setTimeout(resolve, 3000));
}
}
};