From 60ad43406655f29bbb789fd4f1a34e2764599161 Mon Sep 17 00:00:00 2001 From: albertosottile Date: Thu, 31 May 2018 16:59:56 +0200 Subject: [PATCH] Add pyinstaller script for server --- .appveyor.yml | 3 ++- pyinstaller-onedir.spec => pyinstaller-client.spec | 0 pyinstaller-onefile.spec => pyinstaller-server.spec | 7 +++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename pyinstaller-onedir.spec => pyinstaller-client.spec (100%) rename pyinstaller-onefile.spec => pyinstaller-server.spec (76%) diff --git a/.appveyor.yml b/.appveyor.yml index dba3741..b977262 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -21,7 +21,8 @@ init: install: - cd %APPVEYOR_BUILD_FOLDER% - for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a - - pyinstaller pyinstaller-onedir.spec + - pyinstaller pyinstaller-client.spec + - pyinstaller pyinstaller-server.spec - python buildInstaller.py - copy Syncplay-%ver%-Setup.exe Syncplay-%ver%-Setup-Py35.exe - type nul > dist\syncplay.ini diff --git a/pyinstaller-onedir.spec b/pyinstaller-client.spec similarity index 100% rename from pyinstaller-onedir.spec rename to pyinstaller-client.spec diff --git a/pyinstaller-onefile.spec b/pyinstaller-server.spec similarity index 76% rename from pyinstaller-onefile.spec rename to pyinstaller-server.spec index 8e1f105..eb1dd32 100755 --- a/pyinstaller-onefile.spec +++ b/pyinstaller-server.spec @@ -6,11 +6,11 @@ workdir = os.getcwd() block_cipher = None -a = Analysis(['syncplayClient.py'], +a = Analysis(['syncplayServer.py'], pathex=[workdir], binaries=[], datas=[('resources/*', 'resources')], - hiddenimports=['PySide2', 'PySide2.QtCore', 'PySide2.QtWidgets'], + hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], @@ -29,5 +29,4 @@ exe = EXE(pyz, strip=False, upx=False, runtime_tmpdir=None, - console=False, - icon='resources/icon.ico') + console=True)