Browse Source

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

Mochocyang 2 months ago
parent
commit
632644c165
1 changed files with 1 additions and 1 deletions
  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 { readFile } from "node:fs/promises"
 import { execSync } from "node:child_process"
-import { resolve } from "node:path"
+import { dirname, resolve } from "node:path"
 import { fileURLToPath } from "node:url"
 
 const root = resolve(dirname(fileURLToPath(import.meta.url)), "..")