Skip to content

Lota 0.8.0

Latest

Choose a tag to compare

@Kerrick Kerrick released this 21 Nov 17:23
· 2 commits to trunk since this release

Added

  • lota path/to/file.rb runs that Ruby file in the place of main.rb, from its folder, as love path/to/file.lua does, and lota takes a game given as a file:// URI.
  • lota reads LÖVE's options --fused, --console, --game PATH, --renderers LIST, and --excluderenderers LIST anywhere among its arguments, as love does, and gives the game its arguments without them; --renderers and --excluderenderers win over conf.rb's, and --console changes nothing yet.
  • The fuser, an app that makes a .lota opened with it, or given to its program after --build, into an app of its own, with no Ruby on the computer, through Fledge's fledge build --from (Lota::Fuser); rake "fuser[GEM]" builds it from a clone of Lota.
  • Each release also publishes Lota's extension prebuilt for each iOS slice and Android ABI beside the engines, as lota-extension-ios-arm64.tar.gz and the like, built against them and the phone Ruby of the Fledge lota fuse builds with, and pinned beside them. A phone build from the release's source gem links it and compiles only its three-line entry point, so it needs neither Rice nor CMake. A gem whose files differ from the extension's compiles the extension, and a phone Ruby of another ABI stops the build, saying to name the Fledge the extension was built with or to pass --with-rice-dir, with which the build compiles the extension for that Ruby.
  • Each release also publishes, for each desktop, Lota's app, which plays a .lota opened with it or dropped on its "no game" screen as LÖVE's app plays a .love, and the fuser, which makes a .lota into an app of its own; each as an archive and an installer, such as Lota-arm64-darwin.dmg and Lota.Fuser-x64-mingw-ucrt-setup.exe, carrying the release's version and listed in its SHA256SUMS, so neither a player nor a developer needs a clone of Lota to have them

Changed

  • lota fuse builds with Fledge 0.16.0, was 0.14.0; Fledge's changelog says what changes in an app.
  • A fused Linux app is about 69 MB smaller unpacked, since Fledge 0.16.0's runtime carries its static libruby without debug information.
  • An Android app built as the phone guide says carries the NDK's shared C++ runtime, libc++_shared.so, about 1.4 MB in each ABI, with its licence in notices/libc++_shared.txt, and Lota's extension links it, where it linked a static copy of its own.
  • Breaking: Lota::Event.restart runs the game again in its process on every platform, as LÖVE's restart does, where it replaced the process with exec: a game on iPhone, iPad, or Android restarts where it ended, a game in the macOS App Sandbox restarts where macOS 15 killed it, Lota::Boot#call runs the game again where it returned, and on Windows the process keeps its id. What a game changed outside its own files, such as a built-in class or a gem it loaded, stays from one run to the next.
  • Breaking: Lota::Boot#restart? and Lota::Boot#restart_value are gone: Lota::Boot#call now returns only once the game quits, so there is no restart for them to report.
  • Breaking: lota path/to/game runs a game, as love path/to/game does, and lota run is gone. lota alone prints its usage and shows the no-game screen, where it printed its usage, so the game in the current folder runs with lota ., and -v and -h are gone, as love has only --version and --help, which print LÖVE's usage with Lota's names.
  • Breaking: Lota::Boot.new(nil, arguments) takes the game from its arguments, as the lota program does, where nil named the current folder; given a folder, it reads LÖVE's options among the arguments and leaves them out of the game's.
  • lota given a path that holds no game, or a file that is not a .lota, prints its usage and opens a window that shows the error, as love does with a path it cannot load, where it printed the error and exited before opening one.

Fixed

  • Lota.filedropped receives the file dropped on the window, or opened with a fused app on macOS, as a Lota::Filesystem::File, as LÖVE's love.filedropped does, where handling the event raised RuntimeError.