updated compiling and packaging scripts

This commit is contained in:
Samkist
2022-06-06 12:59:46 -04:00
parent 2753885db0
commit f2763ae5e7
3 changed files with 6 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ lfs = require "lfs"
sourcesPath = "source/"
scriptsPath = "scripts/"
buildPath = "build/"
sourceFileName = "basalt.lua"
fetchFiles = function(...)
local tbl = {}
@@ -35,10 +36,8 @@ if not dirExists(buildPath) then
return
end
print("Writing to %s/%s%s", lfs.currentdir(), buildPath, sourceFileName)
local sourceFileName = "basalt.lua"
local sourceFile = io.open(sourceFileName, "w")
print(string.format("Writing to %s/%s%s", lfs.currentdir(), buildPath, sourceFileName))
local sourceFile = io.open(buildPath .. sourceFileName, "w")
sourceFile:write(compiledSource)
sourceFile:close()