From 9ef4d1ad5cda8e5f701e1f58dec97d874d2e63a5 Mon Sep 17 00:00:00 2001 From: Johannes Pohl Date: Sat, 23 Feb 2019 17:02:43 +0100 Subject: [PATCH] Use PyInstaller and InnoSetup for Windows binaries (#618) --- data/azure-pipelines.yml | 16 +++-- data/build_cx.py | 117 ------------------------------------- data/inno.iss | 38 ++++++++++++ data/pyinstaller_helper.py | 43 ++++++++++++++ src/urh/main.py | 10 ++-- src/urh/version.py | 4 ++ 6 files changed, 103 insertions(+), 125 deletions(-) delete mode 100644 data/build_cx.py create mode 100644 data/inno.iss create mode 100644 data/pyinstaller_helper.py diff --git a/data/azure-pipelines.yml b/data/azure-pipelines.yml index e390ae1bf3..511f4d3ef3 100644 --- a/data/azure-pipelines.yml +++ b/data/azure-pipelines.yml @@ -126,7 +126,7 @@ jobs: displayName: "Build extensions" - script: | - pip install wheel twine six appdirs packaging cx_freeze + pip install --upgrade wheel twine six appdirs packaging setuptools pyinstaller pywin32 pip install "pyaudio; python_version < '3.7'" python -c "import tempfile, os; open(os.path.join(tempfile.gettempdir(), 'urh_releasing'), 'w').close()" displayName: "Install build dependencies" @@ -134,9 +134,17 @@ jobs: - script: python setup.py bdist_wheel displayName: "Build python wheel" - - script: python data\build_cx.py + - script: python data/pyinstaller_helper.py condition: eq(variables['python.version'], '3.6') - displayName: "Build MSI" + displayName: "Run PyInstaller" + + - script: | + choco install innosetup + python src/urh/version.py > C:\urh_version.txt + set /p URHVERSION=