Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode打开终端打包报错 #110

Open
IBBKing opened this issue May 10, 2024 · 2 comments
Open

vscode打开终端打包报错 #110

IBBKing opened this issue May 10, 2024 · 2 comments

Comments

@IBBKing
Copy link

IBBKing commented May 10, 2024

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 your package.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/[email protected]/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
Copy link
Author

IBBKing commented May 10, 2024

1715307126304

@IBBKing
Copy link
Author

IBBKing commented May 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant