Skip to content

构建优化建议 #30

@jackple

Description

@jackple

【当前现象】
. 构建时需要分开平台, mac不能打win包, 其实这个障碍是trtcSDK自己造成的, 把所有平台的二进制文件都提供就好了, 然后搭配extraFiles
以及

files: [
  '!node_modules/trtc-electron-sdk/build'
]

来处理构建的文件

. 至于读取的node文件, 可以参考better-sqlite3, 把binary传进去, 就不用引入native-ext-loader 了, 这样就不用区分win和mac构建了, mac也可以打win包

以上的我自己魔改了代码, 然后自行发布了一个版本来给自己使用, 建议官方考虑一下

图例:
image
image

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