fix electron script

This commit is contained in:
Tom (plebeius.eth)
2025-05-13 15:37:51 +02:00
parent dda404fa40
commit a5c60bccc7
2 changed files with 45 additions and 5 deletions
+12 -1
View File
@@ -1,2 +1,13 @@
import { downloadIpfsClients } from './before-pack.js';
downloadIpfsClients();
// Wrap the download in an async IIFE and exit when done
(async () => {
try {
await downloadIpfsClients();
console.log('IPFS clients downloaded successfully.');
process.exit(0);
} catch (err) {
console.error('IPFS clients download error:', err);
process.exit(1);
}
})();