浏览代码

fix(build): 恢复 build-portable 的 dirname 导入,修复 Windows 便携版打包失败

Mochocyang 3 周之前
父节点
当前提交
632644c165
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/build-portable.mjs

+ 1 - 1
scripts/build-portable.mjs

@@ -1,7 +1,7 @@
 import { cpSync, existsSync, mkdirSync, rmSync, statSync, writeFileSync, renameSync } from "node:fs"
 import { cpSync, existsSync, mkdirSync, rmSync, statSync, writeFileSync, renameSync } from "node:fs"
 import { readFile } from "node:fs/promises"
 import { readFile } from "node:fs/promises"
 import { execSync } from "node:child_process"
 import { execSync } from "node:child_process"
-import { resolve } from "node:path"
+import { dirname, resolve } from "node:path"
 import { fileURLToPath } from "node:url"
 import { fileURLToPath } from "node:url"
 
 
 const root = resolve(dirname(fileURLToPath(import.meta.url)), "..")
 const root = resolve(dirname(fileURLToPath(import.meta.url)), "..")