feat: make electron windows build (#1611)

This commit is contained in:
Horus
2023-03-18 21:43:39 +08:00
committed by GitHub
parent 473076b603
commit 56ce99a5dd
6 changed files with 85 additions and 13 deletions

View File

@@ -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'),