From 98245386889fd52c3d3bf055ef8bda7cde247356 Mon Sep 17 00:00:00 2001 From: Robert Jelic Date: Sun, 9 Feb 2025 15:21:57 +0100 Subject: [PATCH] Test --- .github/workflows/minify.yml | 8 +++++++- src/main.lua | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/minify.yml b/.github/workflows/minify.yml index c964cfb..79bc9d8 100644 --- a/.github/workflows/minify.yml +++ b/.github/workflows/minify.yml @@ -36,8 +36,14 @@ jobs: local content = f:read("*all") f:close() - local minified = minify(content) + local success, minified = minify(content) + if not success then + print("Minification failed") + print(minified) + return + end + local out = io.open("release/main.min.lua", "w") out:write(minified) out:close() diff --git a/src/main.lua b/src/main.lua index 6574f2c..e720a9f 100644 --- a/src/main.lua +++ b/src/main.lua @@ -112,5 +112,6 @@ function basalt.run(isActive) end end end +basalt.autoUpdate = basalt.run return basalt \ No newline at end of file