nertc-sdk
Version:
nertc-electron-sdk
12 lines • 575 B
text/typescript
import NERtcEngine from './api';
const NERtcSDK = {NERtcEngine};
if (process.platform === 'win32') {
// Add the compiled product path to the environment variable,
// so that the third party does not need to copy the
// dynamic library separately to the program directory when importing.
const path = require('path');
const asarPath = path.join(__dirname, '../../build/Release/');
const unpackedPath = asarPath.replace('app.asar', 'app.asar.unpacked');
process.env.PATH = `${unpackedPath};${process.env.PATH}`;
}
export default NERtcSDK;