增加下载工具
This commit is contained in:
@ -308,6 +308,9 @@ void InstallOrtAPI(Napi::Env env, Napi::Object exports)
|
||||
#if defined(USE_ONNXRUNTIME) && !defined(BUILD_MAIN_WORD)
|
||||
static Object Init(Env env, Object exports)
|
||||
{
|
||||
#ifdef RELEASE_VERSION
|
||||
exports.Set("__release__", Napi::String::New(env, RELEASE_VERSION));
|
||||
#endif
|
||||
InstallOrtAPI(env, exports);
|
||||
return exports;
|
||||
}
|
||||
|
Reference in New Issue
Block a user