feat: make electron windows build (#1611)
This commit is contained in:
1 parent
473076b603
commit
56ce99a5dd
6 files changed
+85
-13
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
const __dirname = new URL('.', import.meta.url).pathname;
|
||||
|
||||
import * as url from 'node:url';
|
||||
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
||||
// const __dirname = new URL('.', import.meta.url).pathname;
|
||||
const { node } = JSON.parse(
|
||||
fs.readFileSync(
|
||||
path.join(__dirname, '../electron-vendors.autogen.json'),
|
||||
|
||||
Reference in new issue
Block a user