Refactor logging and variable names for consistency; update log messages for clarity

This commit is contained in:
2025-09-28 17:24:17 -03:00
parent 73171424e4
commit 17e1b4b3ab
4 changed files with 62 additions and 37 deletions

View File

@@ -89,7 +89,7 @@ func InstallPackage(file []byte, destDir string) error {
if err != nil {
return err
}
L.SetGlobal("DATA_DIR", lua.LString(filepath.Join(destDir, "data")))
L.SetGlobal("data_dir", lua.LString(filepath.Join(destDir, "data")))
L.SetGlobal("script", lua.LString(manifest.Hooks.Install))
if err := L.DoFile(filepath.Join(destDir, manifest.Hooks.Install)); err != nil {