mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Update fedora build script
This commit is contained in:
parent
650fcf8d80
commit
f7532ecacc
1 changed files with 5 additions and 11 deletions
|
@ -19,10 +19,6 @@ root = os.path.dirname(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def run(cmd):
|
|
||||||
subprocess.run(cmd, cwd=root, check=True)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
build_path = os.path.join(root, "build")
|
build_path = os.path.join(root, "build")
|
||||||
dist_path = os.path.join(root, "dist")
|
dist_path = os.path.join(root, "dist")
|
||||||
|
@ -34,13 +30,11 @@ def main():
|
||||||
shutil.rmtree(dist_path)
|
shutil.rmtree(dist_path)
|
||||||
|
|
||||||
print("* Building RPM package")
|
print("* Building RPM package")
|
||||||
run(
|
subprocess.run(
|
||||||
[
|
"python3 setup.py bdist_rpm --requires='python3-qt5,python3-appdirs,python3-click,python3-pyxdg,python3-requests,(docker or docker-ce)'",
|
||||||
"python3",
|
shell=True,
|
||||||
"setup.py",
|
cwd=root,
|
||||||
"bdist_rpm",
|
check=True,
|
||||||
'--requires="python3-qt5,python3-appdirs,python3-click,python3-pyxdg,python3-requests,(docker or docker-ce)"',
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
|
|
Loading…
Reference in a new issue