This commit is contained in:
HKXluo 2025-05-04 19:56:05 +08:00
parent 7a12ea8557
commit a1e8ca9a15
No known key found for this signature in database
GPG Key ID: 498DD8DAE5261F38

View File

@ -47,12 +47,17 @@ print("\nConversion successful! Download URL:")
print(download_url)
luafile = http.get(download_url)
if luafile then
-- 保存Lua文件 / Save Lua file
print("\nLua file downloaded successfully.")
-- 保存Lua文件 / Save Lua file
f = fs.open("demo.lua", "w")
f.write(luafile.readAll())
f.close()
print("\nLua file saved as demo.lua.")
-- 直接运行Lua文件 / Run Lua file
-- load(luafile.readAll())()
else
print("\nFailed to download Lua file.")
end