Fix build issues using pyinstaller

This commit is contained in:
Brett Williams
2025-03-13 14:17:50 -05:00
parent 7827f73530
commit 05cd0470dd
8 changed files with 11 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ from src.utilities.config import Config
from src.utilities.misc_helper import system_safe_path, current_system_os, current_system_cpu, \
current_system_os_version, num_to_alphanumeric
from src.utilities.status_utils import string_to_status
from version import APP_VERSION
from src.version import APP_VERSION
logger = logging.getLogger()
server = Flask(__name__)

View File

@@ -1,7 +1,6 @@
import logging
import multiprocessing
import os
import platform
import socket
import sys
import threading
@@ -20,7 +19,7 @@ from src.utilities.config import Config
from src.utilities.misc_helper import (system_safe_path, current_system_cpu, current_system_os,
current_system_os_version, check_for_updates)
from src.utilities.zeroconf_server import ZeroconfServer
from version import APP_NAME, APP_VERSION, APP_REPO_NAME, APP_REPO_OWNER
from src.version import APP_NAME, APP_VERSION, APP_REPO_NAME, APP_REPO_OWNER
logger = logging.getLogger()

View File

@@ -5,7 +5,7 @@ from PyQt6.QtCore import Qt
from PyQt6.QtGui import QPixmap
from PyQt6.QtWidgets import QDialog, QVBoxLayout, QLabel, QDialogButtonBox, QHBoxLayout
from version import *
from src.version import *
class AboutDialog(QDialog):

View File

@@ -3,7 +3,6 @@ import datetime
import io
import logging
import os
import subprocess
import sys
import threading
import time
@@ -31,7 +30,7 @@ from src.ui.widgets.statusbar import StatusBar
from src.ui.widgets.toolbar import ToolBar
from src.api.serverproxy_manager import ServerProxyManager
from src.utilities.misc_helper import launch_url, iso_datestring_to_formatted_datestring
from version import APP_NAME
from src.version import APP_NAME
logger = logging.getLogger()

View File

@@ -60,7 +60,7 @@ class MenuBar(QMenuBar):
@staticmethod
def check_for_updates():
from src.utilities.misc_helper import check_for_updates
from version import APP_NAME, APP_VERSION, APP_REPO_NAME, APP_REPO_OWNER
from src.version import APP_NAME, APP_VERSION, APP_REPO_NAME, APP_REPO_OWNER
found_update = check_for_updates(APP_REPO_NAME, APP_REPO_OWNER, APP_NAME, APP_VERSION)
if found_update:
dialog = UpdateDialog(found_update, APP_VERSION)

8
src/version.py Normal file
View File

@@ -0,0 +1,8 @@
APP_NAME = "Zordon"
APP_VERSION = "0.0.1"
APP_AUTHOR = "Brett Williams"
APP_DESCRIPTION = "Distributed Render Farm Tools"
APP_COPYRIGHT_YEAR = "2024"
APP_LICENSE = "MIT License"
APP_REPO_NAME = APP_NAME
APP_REPO_OWNER = "blw1138"