Loading ballontranslator/__main__.py +5 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ import sys import argparse import os.path as osp import os from utils.logger import logger as LOGGER QT_APIS = ['pyqt5', 'pyqt6'] Loading @@ -16,6 +17,10 @@ def main(): else: os.environ['QT_API'] = args.qt_api if sys.platform == 'darwin': os.environ['QT_API'] = 'pyqt6' LOGGER.info('running on macOS, set QT_API to pyqt6') if sys.platform == 'win32': import ctypes myappid = u'BalloonsTranslator' # arbitrary string Loading ballontranslator/__main__.spec +1 −5 Original line number Diff line number Diff line # -*- mode: python ; coding: utf-8 -*- # macOS pyinstaller 打包 block_cipher = None Loading @@ -19,11 +20,6 @@ a = Analysis( './tests', './ui', './ui/framelesswindow', './ui/framelesswindow/fw_qt5', './ui/framelesswindow/fw_qt5/linux', './ui/framelesswindow/fw_qt5/mac', './ui/framelesswindow/fw_qt5/utils', './ui/framelesswindow/fw_qt5/windows', './ui/framelesswindow/fw_qt6', './ui/framelesswindow/fw_qt6/linux', './ui/framelesswindow/fw_qt6/mac', Loading Loading
ballontranslator/__main__.py +5 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ import sys import argparse import os.path as osp import os from utils.logger import logger as LOGGER QT_APIS = ['pyqt5', 'pyqt6'] Loading @@ -16,6 +17,10 @@ def main(): else: os.environ['QT_API'] = args.qt_api if sys.platform == 'darwin': os.environ['QT_API'] = 'pyqt6' LOGGER.info('running on macOS, set QT_API to pyqt6') if sys.platform == 'win32': import ctypes myappid = u'BalloonsTranslator' # arbitrary string Loading
ballontranslator/__main__.spec +1 −5 Original line number Diff line number Diff line # -*- mode: python ; coding: utf-8 -*- # macOS pyinstaller 打包 block_cipher = None Loading @@ -19,11 +20,6 @@ a = Analysis( './tests', './ui', './ui/framelesswindow', './ui/framelesswindow/fw_qt5', './ui/framelesswindow/fw_qt5/linux', './ui/framelesswindow/fw_qt5/mac', './ui/framelesswindow/fw_qt5/utils', './ui/framelesswindow/fw_qt5/windows', './ui/framelesswindow/fw_qt6', './ui/framelesswindow/fw_qt6/linux', './ui/framelesswindow/fw_qt6/mac', Loading