Fix flatpak release build
This commit is contained in:
@@ -73,14 +73,12 @@ if __name__ == "__main__":
|
|||||||
git_desc = ""
|
git_desc = ""
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
git_tag = ""
|
git_tag = ""
|
||||||
git_commit = (
|
|
||||||
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=root).decode().strip()
|
|
||||||
)
|
|
||||||
git_desc = (
|
git_desc = (
|
||||||
subprocess.check_output(["git", "describe", "--tags", "--always"], cwd=root)
|
subprocess.check_output(["git", "describe", "--tags", "--always"], cwd=root)
|
||||||
.decode()
|
.decode()
|
||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
|
git_commit = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=root).decode().strip()
|
||||||
|
|
||||||
if args.git or args.gitlocal:
|
if args.git or args.gitlocal:
|
||||||
template = template.replace("WIVRN_SRC1", "type: git")
|
template = template.replace("WIVRN_SRC1", "type: git")
|
||||||
@@ -88,15 +86,19 @@ if __name__ == "__main__":
|
|||||||
template = template.replace("WIVRN_SRC2", f"url: {args.git}")
|
template = template.replace("WIVRN_SRC2", f"url: {args.git}")
|
||||||
else:
|
else:
|
||||||
template = template.replace("WIVRN_SRC2", f"url: {root}")
|
template = template.replace("WIVRN_SRC2", f"url: {root}")
|
||||||
template = template.replace("WIVRN_SRC3", f"tag: {git_commit}")
|
template = template.replace("WIVRN_SRC3", f"commit: {git_commit}")
|
||||||
else:
|
else:
|
||||||
template = template.replace("WIVRN_SRC1", "type: dir")
|
template = template.replace("WIVRN_SRC1", "type: dir")
|
||||||
template = template.replace("WIVRN_SRC2", f"path: {root}")
|
template = template.replace("WIVRN_SRC2", f"path: {root}")
|
||||||
template = template.replace("WIVRN_SRC3", "")
|
template = template.replace("WIVRN_SRC3", "")
|
||||||
|
|
||||||
template = template.replace("WIVRN_GIT_TAG", git_tag)
|
template = template.replace("WIVRN_GIT_TAG", git_tag)
|
||||||
template = template.replace("WIVRN_GIT_DESC", git_desc)
|
if git_tag != "":
|
||||||
template = template.replace("WIVRN_GIT_COMMIT", git_commit)
|
template = template.replace("WIVRN_GIT_DESC", "")
|
||||||
|
template = template.replace("WIVRN_GIT_COMMIT", "")
|
||||||
|
else:
|
||||||
|
template = template.replace("WIVRN_GIT_DESC", git_desc)
|
||||||
|
template = template.replace("WIVRN_GIT_COMMIT", git_commit)
|
||||||
|
|
||||||
template = template.replace("BOOST_URL", boost_url)
|
template = template.replace("BOOST_URL", boost_url)
|
||||||
template = template.replace("BOOST_SHA256", boost_sha256)
|
template = template.replace("BOOST_SHA256", boost_sha256)
|
||||||
|
|||||||
Reference in New Issue
Block a user