Skip to content

[BUG]执行 "npm run electron:publish-win" 失败 #3431

@LKim13

Description

@LKim13

Bug 描述
执行 "npm run electron:publish-win" 失败,日志如下:

  • With binding.gyp: sharp
  • With .node files: none
    • electron-builder version=24.13.3
    • loaded configuration file=D:\Resources\Projects\ai\chat-ui\B\chatbox-1.18.1\electron-builder.yml
    • installing production dependencies platform=win32 arch=x64 appDir=D:\Resources\Projects\ai\chat-ui\B\chatbox-1.18.1\release\app
    ERROR in dll renderer renderer[11]
    Module not found: Error: Can't resolve '@capacitor/android' in 'D:\Resources\Projects\ai\chat-ui\B\chatbox-1.18.1'

ERROR in dll renderer renderer[17]
Module not found: Error: Can't resolve '@capacitor/ios' in 'D:\Resources\Projects\ai\chat-ui\B\chatbox-1.18.1'

webpack compiled with 2 errors

期望结果
请问如何只打包出win的exe程序?

  • 操作系统:Win11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions