mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -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
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pyopenssl pycryptodomex pyinstaller
|
pip install pyopenssl pycryptodomex pyinstaller pyobjc
|
||||||
|
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -236,7 +236,7 @@ def main():
|
||||||
try:
|
try:
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
except ImportError:
|
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.")
|
"module to enable HTTPS. HTTPS will be disabled.")
|
||||||
plexpy.CONFIG.ENABLE_HTTPS = False
|
plexpy.CONFIG.ENABLE_HTTPS = False
|
||||||
|
|
||||||
|
@ -256,6 +256,13 @@ def main():
|
||||||
plexpy.launch_browser(plexpy.CONFIG.HTTP_HOST, plexpy.HTTP_PORT,
|
plexpy.launch_browser(plexpy.CONFIG.HTTP_HOST, plexpy.HTTP_PORT,
|
||||||
plexpy.HTTP_ROOT)
|
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:
|
if common.PLATFORM == 'Darwin' and plexpy.CONFIG.SYS_TRAY_ICON:
|
||||||
# MacOS system tray icon must be run on the main thread and is blocking
|
# MacOS system tray icon must be run on the main thread and is blocking
|
||||||
# Start the rest of Tautulli on a new thread
|
# Start the rest of Tautulli on a new thread
|
||||||
|
|
|
@ -18,6 +18,7 @@ analysis = Analysis(
|
||||||
('../version.txt', '.')
|
('../version.txt', '.')
|
||||||
],
|
],
|
||||||
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
|
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
|
||||||
|
hiddenimports=['Foundation', 'AppKit'],
|
||||||
cipher=block_cipher
|
cipher=block_cipher
|
||||||
)
|
)
|
||||||
pyz = PYZ(
|
pyz = PYZ(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue