From a8c1e3d6987cb1b9faa4a85e1b6736f5ab289bd9 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 17 Oct 2024 14:25:51 -0500 Subject: Add our rock servers and a system-wide rock tree --- config-5.1.lua | 19 +++++++++++++++++++ lua4win.wxs | 11 +++++++++++ test | 4 ++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 config-5.1.lua diff --git a/config-5.1.lua b/config-5.1.lua new file mode 100644 index 0000000..a24aa83 --- /dev/null +++ b/config-5.1.lua @@ -0,0 +1,19 @@ + +rocks_servers = { + { + "http://lua4.win", + "https://luarocks.org", + "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/", + "https://loadk.com/luarocks/" + } +} +rocks_trees = { + { + name = "system", + root = os_getenv("LUAROCKS_SYSCONFDIR"):gsub("config","luarocks") + }, + { + name = "user", + root = home .. "\\luarocks" + } +} diff --git a/lua4win.wxs b/lua4win.wxs index 194db77..42c2402 100644 --- a/lua4win.wxs +++ b/lua4win.wxs @@ -38,6 +38,8 @@ + + @@ -45,6 +47,13 @@ + + + + + + + @@ -57,6 +66,8 @@ + + diff --git a/test b/test index 2f74971..83f1130 100755 --- a/test +++ b/test @@ -75,7 +75,7 @@ tar -czf images.tar.gz *.png # Make sure we've installed it INSTALLDIR='/root/.wine/drive_c/Program Files (x86)/Lua4Win/Lua4Win 1.0' -test -e $INSTALLDIR/luajit.exe -test -e $INSTALLDIR/luarocks.exe +test -e "$INSTALLDIR/luajit.exe" +test -e "$INSTALLDIR/luarocks.exe" wine "$INSTALLDIR/luarocks.exe" --help wine "$INSTALLDIR/luarocks.exe" config -- cgit v1.2.3-55-g6feb