Restore dev version; release script fixes
This commit is contained in:
parent
b34accd579
commit
88dc1d2bb9
@ -32,13 +32,11 @@
|
||||
|
||||
* Submit Windows binary to [Microsoft malware analysis](https://www.microsoft.com/en-us/wdsi/filesubmission/)
|
||||
|
||||
* Merge working branch to release and tag; push with tags
|
||||
* Push any remaining changes; tag release branch
|
||||
|
||||
* Create new release on GitHub from `CHANGES.txt`; upload files
|
||||
|
||||
* Update the download page on github.io
|
||||
|
||||
* Post annoucement to `@premakeapp`
|
||||
* Post announcement to `@premakeapp`
|
||||
|
||||
|
||||
## CYCLE
|
||||
|
@ -100,9 +100,13 @@
|
||||
|
||||
local pkgName = "premake-" .. version
|
||||
local pkgExt = ".zip"
|
||||
|
||||
if not os.istarget("windows") and kind == "binary" then
|
||||
pkgExt = ".tar.gz"
|
||||
if kind == "binary" then
|
||||
pkgName = pkgName .. "-" .. os.host()
|
||||
if not os.istarget("windows") then
|
||||
pkgExt = ".tar.gz"
|
||||
end
|
||||
else
|
||||
pkgName = pkgName .. "-src"
|
||||
end
|
||||
|
||||
|
||||
@ -236,7 +240,7 @@ if kind == "source" then
|
||||
if not execQuiet("git rm --cached -r -f --ignore-unmatch "..table.concat(excludeList, ' ')) or
|
||||
not execQuiet("git add -f "..table.concat(includeList, ' ')) or
|
||||
not execQuiet("git stash") or
|
||||
not execQuiet("git archive --format=zip -9 -o ../%s-src.zip --prefix=%s/ stash@{0}", pkgName, pkgName) or
|
||||
not execQuiet("git archive --format=zip -9 -o ../%s.zip --prefix=%s/ stash@{0}", pkgName, pkgName) or
|
||||
not execQuiet("git stash drop stash@{0}")
|
||||
then
|
||||
error("failed to archive release", 0)
|
||||
@ -258,14 +262,14 @@ if kind == "binary" then
|
||||
os.chdir("bin/release")
|
||||
|
||||
local addCommand = "git add -f premake5%s"
|
||||
local archiveCommand = "git archive --format=%s -o ../../../%s-%s%s stash@{0} -- ./premake5%s"
|
||||
local archiveCommand = "git archive --format=%s -o ../../../%s%s stash@{0} -- ./premake5%s"
|
||||
|
||||
if os.ishost("windows") then
|
||||
addCommand = string.format(addCommand, ".exe")
|
||||
archiveCommand = string.format(archiveCommand, "zip -9", pkgName, os.host(), pkgExt, ".exe")
|
||||
archiveCommand = string.format(archiveCommand, "zip -9", pkgName, pkgExt, ".exe")
|
||||
else
|
||||
addCommand = string.format(addCommand, "")
|
||||
archiveCommand = string.format(archiveCommand, "tar.gz", pkgName, os.host(), pkgExt, "")
|
||||
archiveCommand = string.format(archiveCommand, "tar.gz", pkgName, pkgExt, "")
|
||||
end
|
||||
|
||||
if not execQuiet(addCommand) or
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define PREMAKE_VERSION "5.0.0-alpha16"
|
||||
#define PREMAKE_VERSION "5.0.0-dev"
|
||||
#define PREMAKE_COPYRIGHT "Copyright (C) 2002-2021 Jason Perkins and the Premake Project"
|
||||
#define PREMAKE_PROJECT_URL "https://github.com/premake/premake-core/wiki"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user