Add Tautulli Windows exe updater

This commit is contained in:
JonnyWong16 2020-12-22 15:21:06 -08:00
commit 0b845294fb
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 209 additions and 3 deletions

View file

@ -3,6 +3,7 @@
import sys
sys.modules['FixTk'] = None
excludes = ['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter']
block_cipher = None
analysis = Analysis(
@ -12,13 +13,27 @@ analysis = Analysis(
('..\\data', 'data'),
('..\\CHANGELOG.md', '.'),
('..\\LICENSE', '.'),
('..\\branch.txt', '.'),
('..\\version.txt', '.'),
('..\\lib\\ipwhois\\data', 'data')
('..\\lib\\ipwhois\\data', 'data'),
('TautulliUpdateTask.xml', '.')
],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
excludes=excludes,
hiddenimports=['pkg_resources.py2_warn', 'cheroot.ssl', 'cheroot.ssl.builtin'],
cipher=block_cipher,
cipher=block_cipher
)
updater_analysis = Analysis(
['updater-windows.py'],
pathex=['lib'],
excludes=excludes,
cipher=block_cipher
)
MERGE(
(analysis, 'Tautulli', 'Tautulli'),
(updater_analysis, 'updater', 'updater')
)
pyz = PYZ(
analysis.pure,
analysis.zipped_data,
@ -39,3 +54,24 @@ coll = COLLECT(
analysis.datas,
name='Tautulli'
)
updater_pyz = PYZ(
updater_analysis.pure,
updater_analysis.zipped_data,
cipher=block_cipher
)
updater_exe = EXE(
updater_pyz,
updater_analysis.scripts,
exclude_binaries=True,
name='updater',
console=False,
icon='..\\data\\interfaces\\default\\images\\logo-circle.ico'
)
coll = COLLECT(
updater_exe,
updater_analysis.binaries,
updater_analysis.zipfiles,
updater_analysis.datas,
name='updater'
)