ESM Conversion, fix downloads

This commit is contained in:
Geomitron
2024-07-09 19:50:44 -05:00
parent bfceb52f70
commit 26c6f5e6f5
25 changed files with 175 additions and 115 deletions

View File

@@ -0,0 +1,8 @@
import fs from 'fs'
const filePath = './dist/electron/src-electron/preload.js'
const newFilePath = './dist/electron/src-electron/preload.mjs'
if (fs.existsSync(filePath)) {
fs.renameSync(filePath, newFilePath)
}