First take on source code packaging in release script
This commit is contained in:
parent
b3bb81cfd0
commit
d1c1a18a92
13
premake.lua
13
premake.lua
@ -122,13 +122,22 @@ project.name = "Premake4"
|
||||
error("Failed to build binary package; see release.log for details")
|
||||
end
|
||||
|
||||
os.chdir("../..")
|
||||
os.chdir("../../..")
|
||||
|
||||
-------------------------------------------------------------------
|
||||
-- Build the source code package (MacOSX only)
|
||||
-------------------------------------------------------------------
|
||||
if (macosx) then
|
||||
result = os.execute(string.format("zip -r9 premake-src-%s.zip %s/* >release.log", version, folder)
|
||||
if (result ~= 0) then
|
||||
error("Failed to build source code package; see release.log for details")
|
||||
end
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------
|
||||
-- Clean up
|
||||
-------------------------------------------------------------------
|
||||
print("Cleaning up...")
|
||||
os.chdir("..")
|
||||
os.rmdir(folder)
|
||||
os.remove("release.log")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user