Update Windows binary and remove Qt5Core dyanmic lib
This commit is contained in:
1 parent
cf1cabfb92
commit
6d7008c35d
3 files changed
+11
-9
No files matched your search
+11
-9
@@ -99,22 +99,24 @@ def cleanupEnginesDirectory():
|
|||||||
|
|
||||||
def getCutechess(server):
|
def getCutechess(server):
|
||||||
|
|
||||||
# Ask the server where the core files are saved
|
if IS_WINDOWS and not os.path.isfile('cutechess.exe'):
|
||||||
|
|
||||||
|
# Fetch the source location if we are missing the binary
|
||||||
source = requests.get(
|
source = requests.get(
|
||||||
pathjoin(server, 'clientGetFiles'),
|
pathjoin(server, 'clientGetFiles'),
|
||||||
timeout=HTTP_TIMEOUT).content.decode('utf-8')
|
timeout=HTTP_TIMEOUT).content.decode('utf-8')
|
||||||
|
|
||||||
# Windows workers need the cutechess.exe and the Qt5Core dll.
|
# Windows workers simply need a static compile (64-bit)
|
||||||
# Linux workers need cutechess and the libcutechess SO.
|
|
||||||
# Make sure Linux binaries are set to be executable.
|
|
||||||
|
|
||||||
if IS_WINDOWS and not os.path.isfile('cutechess.exe'):
|
|
||||||
getFile(pathjoin(source, 'cutechess-windows.exe'), 'cutechess.exe')
|
getFile(pathjoin(source, 'cutechess-windows.exe'), 'cutechess.exe')
|
||||||
|
|
||||||
if IS_WINDOWS and not os.path.isfile('Qt5Core.dll'):
|
|
||||||
getFile(pathjoin(source, 'cutechess-qt5core.dll'), 'Qt5Core.dll')
|
|
||||||
|
|
||||||
if IS_LINUX and not os.path.isfile('cutechess'):
|
if IS_LINUX and not os.path.isfile('cutechess'):
|
||||||
|
|
||||||
|
# Fetch the source location if we are missing the binary
|
||||||
|
source = requests.get(
|
||||||
|
pathjoin(server, 'clientGetFiles'),
|
||||||
|
timeout=HTTP_TIMEOUT).content.decode('utf-8')
|
||||||
|
|
||||||
|
# Linux workers need a static compile (64-bit) with execute permissions
|
||||||
getFile(pathjoin(source, 'cutechess-linux'), 'cutechess')
|
getFile(pathjoin(source, 'cutechess-linux'), 'cutechess')
|
||||||
os.system('chmod 777 cutechess')
|
os.system('chmod 777 cutechess')
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user