diff --git a/.lune/make.luau b/.lune/make.luau index 046e90c..ecb67a6 100644 --- a/.lune/make.luau +++ b/.lune/make.luau @@ -94,7 +94,7 @@ local loader = task.spawn(function() end) task.spawn(function() - local child = spawn("lune", { + local child = spawn("./lunew", { "wax", "bundle", "input=default.project.json", diff --git a/aftman.toml b/aftman.toml index 8c79205..1666d83 100644 --- a/aftman.toml +++ b/aftman.toml @@ -3,6 +3,6 @@ # To add a new tool, add an entry to this table. [tools] -lune = "filiptibell/lune@0.7.8" +lune = "lune-org/lune@0.8.0" darklua = "seaofvoices/darklua@0.10.2" rojo = "rojo-rbx/rojo@7.3.0" diff --git a/lunew b/lunew new file mode 100755 index 0000000..60248c1 --- /dev/null +++ b/lunew @@ -0,0 +1,13 @@ +#!/bin/bash + +lune=$(which lune) + +if (( $(lune --version | cut -d ' ' -f 2 | cut -d '.' -f 2) >= 8 )); then + if compgen -G "$1*" > /dev/null || compgen -G ".lune/$1*" > /dev/null; then + lune run "$@" + exit $? + fi +fi + +lune "$@" +exit $?