From 5b17a81102dfee1da01e64ca0a0934ab97f8ea87 Mon Sep 17 00:00:00 2001 From: Hydrus Network Developer Date: Wed, 30 Jun 2021 00:13:56 -0500 Subject: [PATCH] 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. --- static/build_files/windows/client-win.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/build_files/windows/client-win.spec b/static/build_files/windows/client-win.spec index ed1a607c..03468856 100644 --- a/static/build_files/windows/client-win.spec +++ b/static/build_files/windows/client-win.spec @@ -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'],