|
@@ -11,7 +11,7 @@ class Lua {
|
|
static public function getLuaDependencies(){
|
|
static public function getLuaDependencies(){
|
|
switch (systemName){
|
|
switch (systemName){
|
|
case "Linux":
|
|
case "Linux":
|
|
- Linux.requireAptPackages(["libpcre3-dev", "libssl-dev", "libreadline-dev"]);
|
|
|
|
|
|
+ Linux.requireAptPackages(["libpcre2-dev", "libssl-dev", "libreadline-dev"]);
|
|
runCommand("pip", ["install", "--user", "hererocks"]);
|
|
runCommand("pip", ["install", "--user", "hererocks"]);
|
|
final pyUserBase = commandResult("python", ["-m", "site", "--user-base"]).stdout.trim();
|
|
final pyUserBase = commandResult("python", ["-m", "site", "--user-base"]).stdout.trim();
|
|
addToPATH(Path.join([pyUserBase, "bin"]));
|
|
addToPATH(Path.join([pyUserBase, "bin"]));
|
|
@@ -21,7 +21,7 @@ class Lua {
|
|
else
|
|
else
|
|
runNetworkCommand("brew", ["install", "python3"]);
|
|
runNetworkCommand("brew", ["install", "python3"]);
|
|
|
|
|
|
- attemptCommand("brew", ["install", "pcre"]);
|
|
|
|
|
|
+ attemptCommand("brew", ["install", "pcre2"]);
|
|
runCommand("pip3", ["install", "hererocks"]);
|
|
runCommand("pip3", ["install", "hererocks"]);
|
|
runCommand("brew", ["install", "openssl"]);
|
|
runCommand("brew", ["install", "openssl"]);
|
|
}
|
|
}
|
|
@@ -72,18 +72,18 @@ class Lua {
|
|
|
|
|
|
installLib("luasec", "1.0.2-1");
|
|
installLib("luasec", "1.0.2-1");
|
|
|
|
|
|
- installLib("lrexlib-pcre", "2.9.1-1");
|
|
|
|
|
|
+ installLib("lrexlib-pcre2", "2.9.1-1");
|
|
installLib("luv", "1.36.0-0");
|
|
installLib("luv", "1.36.0-0");
|
|
installLib("luasocket", "3.0rc1-2");
|
|
installLib("luasocket", "3.0rc1-2");
|
|
installLib("luautf8", "0.1.1-1");
|
|
installLib("luautf8", "0.1.1-1");
|
|
-
|
|
|
|
|
|
+
|
|
//Install bit32 for lua 5.1
|
|
//Install bit32 for lua 5.1
|
|
if(lv == "-l5.1"){
|
|
if(lv == "-l5.1"){
|
|
installLib("bit32", "5.2.2-1");
|
|
installLib("bit32", "5.2.2-1");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
installLib("hx-lua-simdjson", "0.0.1-1");
|
|
installLib("hx-lua-simdjson", "0.0.1-1");
|
|
-
|
|
|
|
|
|
+
|
|
changeDirectory(unitDir);
|
|
changeDirectory(unitDir);
|
|
runCommand("haxe", ["compile-lua.hxml"].concat(args));
|
|
runCommand("haxe", ["compile-lua.hxml"].concat(args));
|
|
runCommand("lua", ["bin/unit.lua"]);
|
|
runCommand("lua", ["bin/unit.lua"]);
|