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

【Electron】-【11.4.503】【构建优化】 #570

Open
jackple opened this issue Dec 13, 2023 · 0 comments
Open

【Electron】-【11.4.503】【构建优化】 #570

jackple opened this issue Dec 13, 2023 · 0 comments

Comments

@jackple
Copy link

jackple commented Dec 13, 2023

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

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

来处理构建的文件

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

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

图例:
image
image

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