samyeyo / LuaRT

Open source Windows programming framework for Lua
https://www.luart.org
Other
298 stars 19 forks source link
compiler framework ide lua windows
![LuaRT][title] [![Lua VM 5.4.6](https://badgen.net/badge/Lua%20VM/5.4/yellow)](https://www.lua.org/) ![Windows](https://badgen.net/badge/Windows/Windows%208.1+/blue?icon=windows) [![LuaRT license](https://badgen.net/badge/License/MIT/green)](#license) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/af54881b3d764f5ea210a5419fb96086)](https://www.codacy.com/gh/samyeyo/LuaRT/dashboard?utm_source=github.com&utm_medium=referral&utm_content=samyeyo/LuaRT&utm_campaign=Badge_Grade) [![Twitter Follow](https://img.shields.io/twitter/follow/__LuaRT__?style=social)](https://www.twitter.com/__LuaRT__) Lua multipurpose programming framework to develop Windows applications ![Banner][banner] [Features](#small_blue_diamondfeatures) | [Installation](#small_blue_diamondinstallation) | [Documentation](https://www.luart.org/doc/index.html) | [Supporting](#small_blue_diamondsupporting) | [Links](#small_blue_diamondlinks) | [License](#small_blue_diamondlicense)

:small_blue_diamond:Features

Lua for Windows, with batteries included

Complete development environment

:small_blue_diamond:Installation

:arrows_clockwise: Updating LuaRT

If you have already installed LuaRT and want to update to latest release version, you can use one of those two methods :

  • Run the LuaRT Update application from the Windows Start menu
  • From the File menu of LuaRT Studio, choose Check for LuaRT update

Method 1 : Release package :package:

The preferred way to install LuaRT is to download the latest release package available on GitHub, and run the setup executable. It will install the LuaRT binaries, create the Windows Start menu shortcuts for the IDE and REPL, and update the PATH system variable. It's the easiest and fastest way to start developing with LuaRT.

Method 2 : Building from sources (Visual C++) :gear:

All you need to build LuaRT from sources is a valid installation of Visual C++ compiler (Mingw-w64 GCC compiler is supported but is deprecated and might be removed in next releases). Before proceeding, be sure to have a valid Visual Studio (Build Tools, Community, Professional or Enterprise) installation. Release packages are built using Visual Studio Build Tools 2022.

First open a console using x86 Native Tools Command Prompt (for LuaRT x86) or x64 Native Tools Command Prompt (for LuaRT x64) shortcuts in your Windows Start menu. Then clone the LuaRT repository (or manualy download the repository but don't forget submodules in the tools\ folder) :

git clone --recurse-submodules https://github.com/samyeyo/LuaRT.git

Go to the \src directory and type nmake:

Method 3 : Building from sources (Mingw-w64) :gear:

[!CAUTION]
Building LuaRT with Mingw-w64 toolchain is now deprecated since LuaRT 1.8.0

This compiler cannot be used to build LuaRT anymore

Building LuaRT from sources using the Mingw-w64 GCC compiler is deprecated and might be removed in next releases. Compilation have been successfully reported for Mingw-w64 GCC 8.1.0, Mingw-w64 GCC 11.2.0 and Mingw-w64 GCC 12.2.0 (ie the latest Mingw-w64 10.0.0 runtime).

First clone the LuaRT repository (or manualy download the repository but don't forget submodules in the tools\ folder) :

git clone --recurse-submodules https://github.com/samyeyo/LuaRT.git

Then go to the \src directory and type one of the following commands : make, or make -j4 to speed up the compilation on multicore CPU:

Update PATH environment variable

If everything went right, the \bin folder will contain the LuaRT toolchain :

You must now add the \bin\ directory to the system PATH (set it accordingly to your LuaRT path), for example :

SET PATH=%PATH%;"C:\LuaRT\bin"

:small_blue_diamond:Usage

luart.exe [-e "statement"] [filename] [arg1 arg2...]
wluart.exe [-e "statement"] [filename] [arg1 arg2...]

-e "statement"
Executes the Lua statement in double quotes and exits.

filename [arg1 arg2...]
Loads and executes the Lua script in "filename", with optional arguments (each will be available in the global table arg in Lua).

To get started with LuaRT and make your first steps, follow the Getting started tutorial

:small_blue_diamond:Supporting

There have been many hours of hard work put into LuaRT. Your support will be greatly appreciated!

ko-fi

:small_blue_diamond:Links

:small_blue_diamond:License

LuaRT is copyright (c) 2024 Samir Tine. LuaRT is open source, released under the MIT License. See full copyright notice in the LICENSE.txt file.