dromara / electron-egg

A simple, cross platform, enterprise desktop software development framework
https://www.kaka996.com
Apache License 2.0
1.89k stars 257 forks source link

vscode打开终端打包报错 #110

Open IBBKing opened 6 months ago

IBBKing commented 6 months ago

Warning: This command is deprecated. Use move instead ! [ee-bin] [rd] Start moving resources [ee-bin] [rd] Clear history resources: E:\Work\jianyi-workbench-frame\public\dist [ee-bin] [rd] Copy a resource to: E:\Work\jianyi-workbench-frame\public\dist [ee-bin] [rd] End 'front-packaging-completed' • electron-builder version=24.9.1 os=10.0.22631 • loaded configuration file=E:\Work\jianyi-workbench-frame\electron\config\builderTest.json • @electron/rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies

To ensure your native dependencies are always matched electron version, simply add script "postinstall": "electron-builder install-app-deps" to yourpackage.json` • writing effective config file=out\builder-effective-config.yaml • packaging platform=win32 arch=x64 electron=21.4.4 appOutDir=out\win-unpacked ⨯ remove E:\Work\jianyi-workbench-frame\out\win-unpacked\resources\app.asar: The process cannot access the file because it is being used by another process. github.com/develar/go-fs-util.EnsureEmptyDir /Volumes/data/go/pkg/mod/github.com/develar/go-fs-util@v0.0.0-20190620175131-69a2d4542206/fs.go:98 github.com/develar/app-builder/pkg/electron.UnpackElectron.func1.1 /Volumes/data/Documents/app-builder/pkg/electron/electronUnpack.go:38 github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2 /Volumes/data/Documents/app-builder/pkg/util/async.go:68 runtime.goexit /usr/local/Cellar/go/1.17/libexec/src/runtime/asm_amd64.s:1581 ⨯ E:\Work\jianyi-workbench-frame\node_modules\app-builder-bin\win\x64\app-builder.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 failedTask=build stackTrace=Error: E:\Work\jianyi-workbench-frame\node_modules\app-builder-bin\win\x64\app-builder.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 at ChildProcess. (E:\Work\jianyi-workbench-frame\node_modules\builder-util\src\util.ts:251:14) at Object.onceWrapper (node:events:628:26) at ChildProcess.emit (node:events:513:28) at ChildProcess.cp.emit (E:\Work\jianyi-workbench-frame\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (node:internal/child_process:1100:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) PS E:\Work\jianyi-workbench-frame> 提示进程被占用,我除了打开vscode就没开其他有关软件的东西了

IBBKing commented 6 months ago

1715307126304

IBBKing commented 6 months ago

关了vscode 用PowerShell就可以打包,但是打包出来的页面会有变形