From c4e912a2d5bebb834e4bc99f8959d9bb93cd5243 Mon Sep 17 00:00:00 2001 From: albertosottile Date: Fri, 27 Apr 2018 21:20:57 +0200 Subject: [PATCH] Disable --onefile and change packed dir name --- .appveyor.yml | 8 ++++---- buildInstaller.py | 2 +- pyinstaller-onedir.spec | 4 +--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 0ae9d30..df31a8f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -21,10 +21,10 @@ init: install: - cd %APPVEYOR_BUILD_FOLDER% - for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a - - pyinstaller pyinstaller-onefile.spec - - move dist\Syncplay.exe Syncplay-%ver%-win-Py35-PySide2.exe - - del build /s /Q - - del dist /s /Q + #- pyinstaller pyinstaller-onefile.spec + #- move dist\Syncplay.exe Syncplay-%ver%-win-Py35-PySide2.exe + #- del build /s /Q + #- del dist /s /Q - pyinstaller pyinstaller-onedir.spec - cd dist - python buildInstaller.py diff --git a/buildInstaller.py b/buildInstaller.py index bd9215f..0f43d04 100644 --- a/buildInstaller.py +++ b/buildInstaller.py @@ -41,7 +41,7 @@ def get_nsis_path(): return bin_name NSIS_COMPILE = get_nsis_path() -OUT_DIR = "syncplay_v{}".format(syncplay.version) +OUT_DIR = "Syncplay" SETUP_SCRIPT_PATH = "syncplay_setup.nsi" NSIS_SCRIPT_TEMPLATE = r""" !include LogicLib.nsh diff --git a/pyinstaller-onedir.spec b/pyinstaller-onedir.spec index 5fced31..19b0956 100755 --- a/pyinstaller-onedir.spec +++ b/pyinstaller-onedir.spec @@ -3,8 +3,6 @@ import os workdir = os.getcwd() -import syncplay - block_cipher = None @@ -36,4 +34,4 @@ coll = COLLECT(exe, a.datas, strip=False, upx=True, - name="syncplay_v{}".format(syncplay.version)) + name="Syncplay")