Pyinstaller 5.1 breaks our build.

This commit is contained in:
Paul Kronenwetter 2022-05-18 18:33:54 -04:00
parent 8e92504a45
commit 4ce0fb4de9
3 changed files with 66 additions and 66 deletions

View file

@ -3,7 +3,7 @@ on:
push:
tags:
- 'v*'
jobs:
build_linux_release:
name: Build Linux release
@ -21,14 +21,14 @@ jobs:
uses: actions/checkout@v2
with:
ref: main
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.8
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-20.04'
run: |
@ -37,7 +37,7 @@ jobs:
pip3 install pyaudio
pip3 install psutil
pip3 install crcengine
pip3 install pyinstaller
pip3 install 'pyinstaller<5.1'
pip3 install ujson
pip3 install pyserial
pip3 install numpy
@ -48,7 +48,7 @@ jobs:
#- name: Build Hamlib Python Binding
# if: matrix.os == 'ubuntu-latest'
# working-directory: tnc
# run: |
# run: |
# sudo apt install wig libtool
# cd ~
# git clone https://github.com/Hamlib/Hamlib.git
@ -57,7 +57,7 @@ jobs:
# ./configure --with-python-binding PYTHON_VERSION='3.9' --prefix=$HOME/local
# make
# make install
@ -69,20 +69,20 @@ jobs:
cd codec2 && mkdir build_linux && cd build_linux
cmake ../
make
- name: Build Linux Daemon
if: matrix.os == 'ubuntu-20.04'
working-directory: tnc
run: |
run: |
pyinstaller freedata.spec
- name: LIST ALL FILES
shell: bash
run: |
ls -R
ls -R
- name: Compress Linux
shell: bash
run: |
@ -95,26 +95,26 @@ jobs:
with:
name: tnc-artifact
path: ./tnc/dist/compressed/*
- name: Copy TNC to GUI Linux
if: matrix.os == 'ubuntu-20.04'
run: |
run: |
cp -R ./tnc/dist/tnc ./gui/tnc
ls -R
ls -R
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Release TNC
- name: Release TNC
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:

View file

@ -3,7 +3,7 @@ on:
push:
tags:
- 'v*'
jobs:
build_linux_release:
name: Build macOS release
@ -21,21 +21,21 @@ jobs:
uses: actions/checkout@v2
with:
ref: main
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: 3.9
- name: Install macOS dependencies
if: matrix.os == 'macos-10.15'
run: |
python -m pip install --upgrade pip
pip3 install psutil
pip3 install crcengine
pip3 install pyinstaller
pip3 install 'pyinstaller<5.1'
pip3 install ujson
pip3 install pyserial
pip3 install numpy
@ -57,20 +57,20 @@ jobs:
cd codec2 && mkdir build_mac && cd build_mac
cmake ../
make
- name: Build macOS pyinstaller
if: matrix.os == 'macos-10.15'
working-directory: tnc
run: |
run: |
pyinstaller freedata.spec
- name: LIST ALL FILES
shell: bash
run: |
ls -R
ls -R
- name: Compress
shell: bash
run: |
@ -85,25 +85,25 @@ jobs:
path: ./tnc/dist/compressed/*
- name: Copy TNC to GUI
if: matrix.os == 'macos-10.15'
run: |
run: |
cp -R ./tnc/dist/tnc ./gui/tnc
ls -R
ls -R
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Release TNC
- name: Release TNC
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
@ -113,6 +113,6 @@ jobs:
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
args: "-p always"

View file

@ -3,7 +3,7 @@ on:
push:
tags:
- 'v*'
jobs:
build_windows_release:
@ -22,19 +22,19 @@ jobs:
uses: actions/checkout@v2
with:
ref: main
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: 3.9
- name: Install Python dependencies
if: matrix.os == 'windows-latest'
run: |
python -m pip install --upgrade pip
pip install psutil
pip install crcengine
pip install pyinstaller
pip install 'pyinstaller<5.1'
pip install ujson
pip install pyserial
pip install numpy
@ -43,30 +43,30 @@ jobs:
pip install sounddevice
# curl.exe --output PyAudio-0.2.11-cp39-cp39-win_amd64.whl --url https://download.lfd.uci.edu/pythonlibs/y2rycu7g/PyAudio-0.2.11-cp39-cp39-win_amd64.whl
# pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
- name: Install Pyaudio
if: matrix.os == 'windows-latest'
working-directory: tnc/lib/pyaudio/windows
run: |
pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
- name: Build Windows Daemon and TNC
if: matrix.os == 'windows-latest'
working-directory: tnc
run: |
run: |
pyinstaller freedata.spec
- name: Copy TNC to GUI
shell: bash
run: |
cp -R ./tnc/dist/tnc ./gui/tnc
run: |
cp -R ./tnc/dist/tnc ./gui/tnc
- name: LIST ALL FILES
shell: bash
run: |
ls -R
ls -R
- name: Archive TNC
uses: thedoctor0/zip-release@master
@ -75,7 +75,7 @@ jobs:
filename: '${{ matrix.zip_name }}.zip'
directory: ./tnc/dist/tnc
path: .
#exclusions: '*.git* /*node_modules/* .editorconfig'
#exclusions: '*.git* /*node_modules/* .editorconfig'
- name: LIST ALL FILES
shell: bash
@ -85,25 +85,25 @@ jobs:
#- name: Build codec2
# shell: bash
# run: |
# choco install ninja cmake
# ninja --version
# cmake --version
# cmake --version
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Release TNC
node-version: 16
- name: Release TNC
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
@ -113,5 +113,5 @@ jobs:
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
args: "-p always"