fix build, fix electron

This commit is contained in:
Tom (plebeius.eth)
2025-05-22 13:15:40 +02:00
parent c4978028c0
commit c192e526f5
10 changed files with 140 additions and 51 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);
}
})();