Deluze / electron-vue-template

Simple Vue3 + Electron starter template in TypeScript, including ViteJS and Electron Builder
MIT License
534 stars 104 forks source link

Delete package file related #63

Closed nanfb closed 3 weeks ago

nanfb commented 3 weeks ago

image

image

dist_electron file will be generated in the root path after packaging, but I want to delete it in vscode, there is an app.asar file that is locked and cannot be deleted, and it can only be deleted after vscode is closed, and it will affect repeated packaging, that is, if the package file is not deleted after packaging, then continue packaging. You'll get an error because of that

Deluze commented 3 weeks ago

I don't have vscode installed.

Are you building the app through your CLI, or are you running some vscode tasks? I'm not sure how to verify this issue.. a bit odd-sounding that vscode has a file handle open to that file..

Do you perhaps have some vscode extensions installed that could be causing this?

nanfb commented 3 weeks ago

我没有安装 vscode。

您是通过 CLI 构建应用程序,还是正在运行一些 vscode 任务? 我不确定如何验证这个问题。听起来有点奇怪,vscode 有一个打开该文件的文件句柄。

您是否安装了一些可能导致此问题的 vscode 扩展?

I don’t know. After I modified the packaging configuration file of electron, it became normal. It’s strange.