增加下载工具

This commit is contained in:
2025-03-20 18:24:12 +08:00
parent 6bf7db1f4c
commit 6cdf4cbcd6
12 changed files with 131 additions and 9 deletions

View File

@ -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;
}