mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Add dependencies for MacOS system tray icon
This commit is contained in:
parent
c6bd1b06f2
commit
8226a14b00
3 changed files with 10 additions and 2 deletions
2
.github/workflows/publish-release.yml
vendored
2
.github/workflows/publish-release.yml
vendored
|
@ -95,7 +95,7 @@ jobs:
|
|||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pyopenssl pycryptodomex pyinstaller
|
||||
pip install pyopenssl pycryptodomex pyinstaller pyobjc
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
|
|
|
@ -236,7 +236,7 @@ def main():
|
|||
try:
|
||||
import OpenSSL
|
||||
except ImportError:
|
||||
logger.warn("The pyOpenSSL module is missing. Install this " \
|
||||
logger.warn("The pyOpenSSL module is missing. Install this "
|
||||
"module to enable HTTPS. HTTPS will be disabled.")
|
||||
plexpy.CONFIG.ENABLE_HTTPS = False
|
||||
|
||||
|
@ -256,6 +256,13 @@ def main():
|
|||
plexpy.launch_browser(plexpy.CONFIG.HTTP_HOST, plexpy.HTTP_PORT,
|
||||
plexpy.HTTP_ROOT)
|
||||
|
||||
try:
|
||||
import AppKit
|
||||
except ImportError:
|
||||
logger.warn("The pyobjc module is missing. Install this "
|
||||
"module to enable the system tray icon.")
|
||||
plexpy.CONFIG.SYS_TRAY_ICON = False
|
||||
|
||||
if common.PLATFORM == 'Darwin' and plexpy.CONFIG.SYS_TRAY_ICON:
|
||||
# MacOS system tray icon must be run on the main thread and is blocking
|
||||
# Start the rest of Tautulli on a new thread
|
||||
|
|
|
@ -18,6 +18,7 @@ analysis = Analysis(
|
|||
('../version.txt', '.')
|
||||
],
|
||||
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
|
||||
hiddenimports=['Foundation', 'AppKit'],
|
||||
cipher=block_cipher
|
||||
)
|
||||
pyz = PYZ(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue