From e2cedd24cf92c4387ab4db89163f51e6930efbe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Wed, 19 Oct 2022 19:10:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=F0=9F=90=9E):=20correct=20entry=20path=20#?= =?UTF-8?q?76?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main/index.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 819f640..747883c 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -8,7 +8,7 @@ // ├─┬ dist // │ └── index.html > Electron-Renderer // -process.env.DIST_ELECTRON = join(__dirname, '..') +process.env.DIST_ELECTRON = join(__dirname, '../..') process.env.DIST = join(process.env.DIST_ELECTRON, '../dist') process.env.PUBLIC = app.isPackaged ? process.env.DIST : join(process.env.DIST_ELECTRON, '../public') diff --git a/package.json b/package.json index 630e62a..574ad19 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "description": "Vite React Electron boilerplate.", "author": "草鞋没号 <308487730@qq.com>", "license": "MIT", - "main": "dist-electron/main/index.js", + "main": "dist-electron/electron/main/index.js", "scripts": { "dev": "vite", "build": "tsc && vite build && electron-builder"