Skip to content

v0.3.0: Native Electron ASAR Support

Latest

Choose a tag to compare

@HaowenWeiJohn HaowenWeiJohn released this 16 Aug 19:46

πŸš€ Release v0.3.0

✨ What's New

Native Electron ASAR Support - The package now works out-of-the-box with Electron applications! No more post-install patches needed.

πŸ”§ Key Features

  • Automatic ASAR Detection: Detects when running inside an Electron ASAR archive and adjusts paths accordingly
  • Smart Path Resolution: Automatically finds native binaries in app.asar.unpacked during production builds
  • Multiple Fallbacks: Tries several paths including process.resourcesPath for maximum compatibility
  • Better Debugging: Console logging shows exactly where the library loads from
  • Backward Compatible: Still works perfectly in standard Node.js environments

πŸ› Problem Solved

Previously, when Electron applications were packaged with electron-builder, the native LSL binaries would fail to load because they were inside the ASAR archive. Users had to apply post-install patches to fix the library paths.

This release eliminates that requirement by making the package intelligent enough to find the unpacked binaries automatically.

πŸ“¦ Installation

npm install node-labstreaminglayer@0.3.0

πŸ™ Acknowledgments

This release addresses the Electron packaging issues reported by the community. Thank you for your feedback!

πŸ€– Generated with Claude Code