TurboActivate NodeJS + Electron Example HelpSolved

Hello Wyatt!I hope you are doing well!

I just developed a very simple activator using the TurboActivate NodeJS + Electron example.It was running perfectly when I test it using "electron ." command.But when I build it using electron-packager, it looks like it cant find the TurboActivate.dat file path.This is the screenshot: https://prnt.sc/sn095aI noticed this issue when the app cannot find the TurboActivate.dat file... or when chmod is not set.But I set chmod and placed .dat file inside /native/Mac/TurboActivate.dat

So my question is, where is the right path of TurboActivate.dat, systa, libTurboActivate.dylib file when I build the app?Inside /Contents/Resources/app, there is a copy of electron project, and there, the native directory exists I set chmod on the root build directory, but still error happens.

Please kindly help me to fix this problemI look forward to hear from youThank you

Rey

I just solved the problem by adding a absolute path.ta_files[process.platform] is a relative path based on nodejs root directory.so in packed mode, we need to set up a absolute path.here is an example how to replace.systaProc = spawn(os.homedir() + "/" + ta_files[process.platform], systaArgs);thanks

Answer

We've pushed the latest fix for the TurboActivate and TurboFloat npm packages. We'll also include the fixed integration files as part of the new release on our API page (no hard date, ASAP).

Thanks for reporting this.

, edited