From 05fbbde194042087b1fec309730f817f3c250393 Mon Sep 17 00:00:00 2001 From: roboogg133 Date: Tue, 23 Sep 2025 19:11:11 -0300 Subject: [PATCH] Setting data_dir variable to lua scripts to a string with the package data folder --- pkg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/main.go b/pkg/main.go index 337f7e5..9503005 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -96,7 +96,7 @@ func InstallPackage(file io.Reader, destDir string) error { if err != nil { return err } - L.SetGlobal("data_dir", lua.LFalse) + L.SetGlobal("data_dir", lua.LString(filepath.Join(destDir, "data"))) L.SetGlobal("script", lua.LString(manifest.Hooks.Install)) if err := L.DoFile(manifest.Hooks.Install); err != nil {