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

bugfix and failed attempt to add icon

parent 22cb4076
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\irods-clientsb\gui\ui_files\__pycache__'
# Created by: PyQt5 UI code generator 5.15.4
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
......@@ -28,7 +28,7 @@ def run_cmd(cmd):
# Convert the .ui files to .py files
def ui_to_py(ui_folder, python):
# python -m PyQt5.uic.pyuic -x main.ui -o
for ui_file in glob(ui_folder + '*'):
for ui_file in glob(ui_folder + '*.ui'):
filename, ext = path.splitext(ui_file)
print(f"Converting {filename} to .py")
run_cmd(f"""{python} -m PyQt5.uic.pyuic -x {ui_file} -o {filename +".py"}""")
......@@ -105,7 +105,7 @@ if __name__ == "__main__":
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 --noconfirm {getcwd()}{sep}")
run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean --noconfirm --icon irods-iBridgesGui.ico")
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