From fbd188511df20fffefa936d75edb812abe16baa0 Mon Sep 17 00:00:00 2001 From: viarotel Date: Tue, 17 Oct 2023 18:46:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=94=A7=20=E4=BC=98=E5=8C=96=20isPa?= =?UTF-8?q?ckaged=20=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=A7=A3=E6=9E=90=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/helpers/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electron/helpers/index.js b/electron/helpers/index.js index 85f401d..5ccebac 100644 --- a/electron/helpers/index.js +++ b/electron/helpers/index.js @@ -1,8 +1,7 @@ import { resolve } from 'node:path' import { contextBridge } from 'electron' -export const isPackaged = !process.resourcesPath.includes('node_modules') -// export const isPackaged = !process.execPath.includes('node_modules') +export const isPackaged = !process.env.VITE_DEV_SERVER_URL export const extraResolve = value => isPackaged