Skip to content

v0.107.0

Choose a tag to compare

@github-actions github-actions released this 23 May 10:16
· 111 commits to main since this release

⚠️ Breaking Change

MRubyCS.Compiler for Unity is now distributed via NuGet through NuGetForUnity (v4.3.0+, native plugin support required).

The Unity Package Manager package now contains only the Editor extension (ScriptedImporter for .rb / .mrb). The runtime + native binaries ship inside the NuGet package.

  • Before (≤ 0.106.x): install MRubyCS.Compiler from a git URL via Package Manager.
  • After (≥ 0.107.0): install MRubyCS.Compiler via NuGetForUnity (alongside MRubyCS).

Migration Guide

  1. Update the MRubyCS.Compiler git URL package in Package Manager to 0.107.0 (or remove it if you don't need the .rb / .mrb ScriptedImporter).
  2. Upgrade NuGetForUnity to v4.3.0+.
  3. Install MRubyCS.Compiler via NuGetForUnity.
  4. (macOS only) Apply the Inspector fix above and reimport the dylibs.

Note

🍎 Required step for macOS users
macOS editor users may encounter the following error when using MRubyCS.Compiler within their editor.

DllNotFoundException: dlopen(.../runtimes/osx-x64/native/libmruby.dylib, ...): incompatible architecture (have 'x86_64', need 'arm64')

A fix has been submitted upstream as NuGetForUnity#755. Until that's merged and released, fix the two dylibs from Unity's Inspector:

  1. In the Project window, select Assets/Packages/MRubyCS.Compiler.*/runtimes/osx-arm64/native/libmruby.dylib. In the Inspector, under Platform settings → Editor, check Include Platforms → Editor, set CPU to ARM64, OS to OSX, then Apply.
  2. Select Assets/Packages/MRubyCS.Compiler.*/runtimes/osx-x64/native/libmruby.dylib. In the Inspector, under Platform settings → Editor, uncheck Editor (or set CPU to x86_64 and OS to OSX if you want it kept for Intel Editors), then Apply.
  3. Right-click each of the two libmruby.dylib files in the Project window and choose Reimport. NuGetForUnity skips reprocessing assets that already have its label, so the explicit reimport is required to apply the corrected Editor/CPU settings.

Full Changelog: 0.106.1...0.107.0