Skip to content

get-lit: improve luvit installation#358

Open
Bilal2453 wants to merge 2 commits intoluvit:masterfrom
Bilal2453:get-lit
Open

get-lit: improve luvit installation#358
Bilal2453 wants to merge 2 commits intoluvit:masterfrom
Bilal2453:get-lit

Conversation

@Bilal2453
Copy link
Contributor

@Bilal2453 Bilal2453 commented Mar 4, 2026

Overhauls the get-lit scripts to support new luvi versioning, and other QoL improvements.

Changes overview

  • Support installing new luvi's release format as well as the old format.
  • Allow the user to specify the Lua engine, architecture, OS, Luvit version and installation directory.
  • Better OS and architecture detection.
  • Retry on download failure, good for when the Lit server is acting up.
  • Make it possible to pull the latest release of luvit, luvi or lit by simply specifying latest.
  • Better compatibility error handing between the various components.
  • Better logging and cleaning.
  • Add Linux/Unix support for the PowerShell script.
  • Bumps Lit version to 3.9.0 from 3.8.5.

Notes

  • Raises the minimum required version of Curl to 7.12.3 (2004), required for --retry support.
  • The minimum required version of PowerShell stays +3.0.
  • Dropped the legacy WebClient PowerShell API in favour of Invoke-WebRequest.

Possible to-dos

  • Hide lit make output into a log file, which is only cleaned on successful runs.
  • Use latest as a default version for luvi and lit.
  • Add more compatibility checks between luvi, luvit and lit.

Tested most of the features I could on a Windows 10 machine (PS 5.1), PowerShell +7 on Linux and the sh script on Linux. I'm not exactly good at shell scripting, so hopefully this looks clean enough!
Most of this is @truemedian's work, many thanks to him!

Supersedes #353 and previous attempts.

truemedian and others added 2 commits March 5, 2026 00:55
* improve error reporting
* improve user facing feedback (such as where to find the binaries)
* improve reliability (retry fetching from lit.luvit.io)
* allow selecting a luvit version to install
* fix for luvit 2.15+ new download url

work: cleanup

work: add get-lit.ps1

work: clean up download
fix: properly fetch latest luvi
fix: version comparison is not ignoring prefixed v
fix: not exiting on lit failure
fix: improper arch detection compatibility with older PS versions
refactor: use Invoke-WebRequest instead of legacy WebClient
refactor: clean the powershell script
refactor: use [version] for PS version comparisons
feat: allow version env variables starting with v
feat: add check for the minimum luvi requirement for lit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants