From 381ffb2e2e5532b971c770f635b4e272399164c1 Mon Sep 17 00:00:00 2001 From: glidergeek Date: Thu, 30 Mar 2023 16:11:44 +0200 Subject: [PATCH 1/3] try linux build --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1f56ba..3516cb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,15 @@ jobs: OUT_FILE_NAME: windows_pysoar OUT_FILE_PATH: PySoar/dist/windows_pysoar.exe ASSET_MIME: application/vnd.microsoft.portable-executable + - os: ubuntu-22.04 + TARGET: linux + CMD_BUILD: > + cd PySoar && + pyinstaller --onefile --windowed main_pysoar.py && + mv dist/main_pysoar dist/linux_pysoar + OUT_FILE_NAME: linux_pysoar + OUT_FILE_PATH: PySoar/dist/linux_pysoar + steps: - uses: actions/checkout@v3 - name: Set up Python From 0c8b316ac1436f3cecd80d27fa37f41f78104bde Mon Sep 17 00:00:00 2001 From: glidergeek Date: Thu, 30 Mar 2023 16:13:39 +0200 Subject: [PATCH 2/3] remove superfluous indent --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3516cb2..0c25c21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,13 +31,13 @@ jobs: OUT_FILE_PATH: PySoar/dist/windows_pysoar.exe ASSET_MIME: application/vnd.microsoft.portable-executable - os: ubuntu-22.04 - TARGET: linux - CMD_BUILD: > - cd PySoar && - pyinstaller --onefile --windowed main_pysoar.py && - mv dist/main_pysoar dist/linux_pysoar - OUT_FILE_NAME: linux_pysoar - OUT_FILE_PATH: PySoar/dist/linux_pysoar + TARGET: linux + CMD_BUILD: > + cd PySoar && + pyinstaller --onefile --windowed main_pysoar.py && + mv dist/main_pysoar dist/linux_pysoar + OUT_FILE_NAME: linux_pysoar + OUT_FILE_PATH: PySoar/dist/linux_pysoar steps: - uses: actions/checkout@v3 From 3a8d5f99b1119064c31edf2dd07ff0daaa2d6cb2 Mon Sep 17 00:00:00 2001 From: glidergeek Date: Thu, 30 Mar 2023 16:34:15 +0200 Subject: [PATCH 3/3] try with more system packages --- .github/workflows/build.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c25c21..c2bf641 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,9 @@ jobs: include: - os: macos-11 TARGET: macos + CMD_INSTALL: > + python -m pip install --upgrade pip && + pip install -r requirements.txt CMD_BUILD: > cd PySoar && pyinstaller --windowed main_pysoar.py && @@ -23,6 +26,9 @@ jobs: ASSET_MIME: application/zip - os: windows-latest TARGET: windows + CMD_INSTALL: > + python -m pip install --upgrade pip && + pip install -r requirements.txt CMD_BUILD: > cd PySoar && pyinstaller --onefile --windowed main_pysoar.py && @@ -32,6 +38,10 @@ jobs: ASSET_MIME: application/vnd.microsoft.portable-executable - os: ubuntu-22.04 TARGET: linux + CMD_INSTALL: > + sudo apt install python3-pip make gcc libgtk-3-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev && + python -m pip install --upgrade pip && + pip install -r requirements.txt CMD_BUILD: > cd PySoar && pyinstaller --onefile --windowed main_pysoar.py && @@ -45,10 +55,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + - name: Install dependencies for ${{matrix.TARGET}} + run: ${{matrix.CMD_INSTALL}} - name: Build with pyinstaller for ${{matrix.TARGET}} run: ${{matrix.CMD_BUILD}} - name: list files