ffbe5b449d
Summary: With this diff, each build of Memgraph has a version that uniquely identifies it. The given version uniquely identifies both official release builds and development builds. Enterprise/community builds are also differentiated in the version. Also, support for custom suffixes is added to support custom builds for customers. Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2662
20 lines
636 B
Python
Executable File
20 lines
636 B
Python
Executable File
#!/usr/bin/env python3
|
|
import json
|
|
import os
|
|
|
|
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
|
BUILD_OUTPUT_DIR = os.path.join("build_release", "output")
|
|
|
|
archives = []
|
|
output_dir = os.path.join(SCRIPT_DIR, BUILD_OUTPUT_DIR)
|
|
if os.path.exists(output_dir):
|
|
for fname in os.listdir(output_dir):
|
|
if fname.startswith("memgraph") and fname.endswith(".deb"):
|
|
path = os.path.join(BUILD_OUTPUT_DIR, fname)
|
|
archives = [{
|
|
"name": "Release " + fname.split("_")[1] + " (deb package)",
|
|
"archive": path,
|
|
}]
|
|
|
|
print(json.dumps(archives, indent=4, sort_keys=True))
|