Commit a77d7a21 authored by Daalen, Tim van's avatar Daalen, Tim van
Browse files

Removed confirm question during build

parent 72c8903d
......@@ -15,11 +15,11 @@ This makes it rougly 30 seconds slower than the current variant.
# Run command in shell, stdout is printed to the screen
def run_cmd(cmd):
ps = run(cmd, stderr=STDOUT, shell=True, text=True)
ps = run(cmd, stderr=STDOUT, shell=True, universal_newlines=True)
# Print anny errors
if ps.stderr != None:
print(ps.stdout)
raise Exception("ui file conversion error")
raise Exception("shell run error")
# Convert the .ui files to .py files
......@@ -92,11 +92,11 @@ if __name__ == "__main__":
# Step 2b, Create the venv if needed
venv_activate = venv + f"{sep}Scripts{sep}activate.bat"
if (not path.exists(venv_activate)) or (not path.isfile(venv_activate)):
run_cmd(f"python -m venv {venv}")
run_cmd(f"python -m venv {venv}")
run_cmd(f"{venv_activate} {cmd_sep} pip install -r requirements.txt")
# Step 3, Activate venv and tun pyinstaller
run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean {getcwd()}{sep}irods-iBridgesGui.py")
run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean --noconfirm {getcwd()}{sep}irods-iBridgesGui.py")
dist_folder = f"{getcwd()}{sep}dist"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment