2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user