We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
【当前现象】 . 构建时需要分开平台, mac不能打win包, 其实这个障碍是trtcSDK自己造成的, 把所有平台的二进制文件都提供就好了, 然后搭配extraFiles 以及
extraFiles
files: [ '!node_modules/trtc-electron-sdk/build' ]
来处理构建的文件
. 至于读取的node文件, 可以参考better-sqlite3, 把binary传进去, 就不用引入native-ext-loader 了, 这样就不用区分win和mac构建了, mac也可以打win包
native-ext-loader
以上的我自己魔改了代码, 然后自行发布了一个版本来给自己使用, 建议官方考虑一下
图例:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
【当前现象】
. 构建时需要分开平台, mac不能打win包, 其实这个障碍是trtcSDK自己造成的, 把所有平台的二进制文件都提供就好了, 然后搭配
extraFiles
以及
来处理构建的文件
. 至于读取的node文件, 可以参考better-sqlite3, 把binary传进去, 就不用引入
native-ext-loader
了, 这样就不用区分win和mac构建了, mac也可以打win包以上的我自己魔改了代码, 然后自行发布了一个版本来给自己使用, 建议官方考虑一下
图例:
The text was updated successfully, but these errors were encountered: