🐛 Fix: fix macos build bug

This commit is contained in:
萌萌哒赫萝
2023-02-16 12:12:35 +08:00
parent 351fd9c99f
commit 1f8e56717a
3 changed files with 54 additions and 31 deletions
+3 -1
View File
@@ -2,7 +2,9 @@
// just copy the fix-path because I can't import pure ESM module in electron main process
// @ts-nocheck
import { shellPath } from 'shell-path'
// shell-path 3.0.0 not work
const shellPath = require('shell-path')
export default function fixPath () {
if (process.platform === 'win32') {