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/)
|
* 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
|
* Create new release on GitHub from `CHANGES.txt`; upload files
|
||||||
|
|
||||||
* Update the download page on github.io
|
* Post announcement to `@premakeapp`
|
||||||
|
|
||||||
* Post annoucement to `@premakeapp`
|
|
||||||
|
|
||||||
|
|
||||||
## CYCLE
|
## CYCLE
|
||||||
|
@ -100,9 +100,13 @@
|
|||||||
|
|
||||||
local pkgName = "premake-" .. version
|
local pkgName = "premake-" .. version
|
||||||
local pkgExt = ".zip"
|
local pkgExt = ".zip"
|
||||||
|
if kind == "binary" then
|
||||||
if not os.istarget("windows") and kind == "binary" then
|
pkgName = pkgName .. "-" .. os.host()
|
||||||
pkgExt = ".tar.gz"
|
if not os.istarget("windows") then
|
||||||
|
pkgExt = ".tar.gz"
|
||||||
|
end
|
||||||
|
else
|
||||||
|
pkgName = pkgName .. "-src"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -236,7 +240,7 @@ if kind == "source" then
|
|||||||
if not execQuiet("git rm --cached -r -f --ignore-unmatch "..table.concat(excludeList, ' ')) or
|
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 add -f "..table.concat(includeList, ' ')) or
|
||||||
not execQuiet("git stash") 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}")
|
not execQuiet("git stash drop stash@{0}")
|
||||||
then
|
then
|
||||||
error("failed to archive release", 0)
|
error("failed to archive release", 0)
|
||||||
@ -258,14 +262,14 @@ if kind == "binary" then
|
|||||||
os.chdir("bin/release")
|
os.chdir("bin/release")
|
||||||
|
|
||||||
local addCommand = "git add -f premake5%s"
|
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
|
if os.ishost("windows") then
|
||||||
addCommand = string.format(addCommand, ".exe")
|
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
|
else
|
||||||
addCommand = string.format(addCommand, "")
|
addCommand = string.format(addCommand, "")
|
||||||
archiveCommand = string.format(archiveCommand, "tar.gz", pkgName, os.host(), pkgExt, "")
|
archiveCommand = string.format(archiveCommand, "tar.gz", pkgName, pkgExt, "")
|
||||||
end
|
end
|
||||||
|
|
||||||
if not execQuiet(addCommand) or
|
if not execQuiet(addCommand) or
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#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_COPYRIGHT "Copyright (C) 2002-2021 Jason Perkins and the Premake Project"
|
||||||
#define PREMAKE_PROJECT_URL "https://github.com/premake/premake-core/wiki"
|
#define PREMAKE_PROJECT_URL "https://github.com/premake/premake-core/wiki"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user