Adding Shiboken2 Scripts to Win Build

This fixed the problem with running on windows from a network install. This updated spec worked locally, now testing on github for tomorrow's release.
This commit is contained in:
Hydrus Network Developer 2021-06-30 00:13:56 -05:00
parent d45617c11e
commit 5b17a81102
1 changed files with 3 additions and 0 deletions

View File

@ -2,10 +2,12 @@
import cloudscraper
import cv2
import shiboken2
import os
import glob
cloudscraper_dir = os.path.dirname( cloudscraper.__file__ )
cv2_ffmpeg_dll = glob.glob(os.path.dirname( cv2.__file__ )+"/*.dll")[0]
shiboken_dir = os.path.join( os.path.dirname( shiboken2.__file__ ), 'files.dir' )
block_cipher = None
@ -26,6 +28,7 @@ a = Analysis(['hydrus\\client.pyw'],
('hydrus\\sqlite3.dll', '.'),
('hydrus\\mpv-1.dll', '.'),
(cloudscraper_dir, 'cloudscraper'),
(shiboken_dir, 'shiboken2\\files.dir'),
(cv2_ffmpeg_dll, '.')
],
hiddenimports=['hydrus\\server.py', 'cloudscraper'],