From 3990fa789193930d7c1e726ce1c4d6b13d118e5f Mon Sep 17 00:00:00 2001 From: Aphelion <61633628+AphelionWasTaken@users.noreply.github.com> Date: Sun, 3 May 2026 14:10:58 -0500 Subject: [PATCH 1/2] Create Linux release --- .github/workflows/build.yml | 77 +++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d8b151..f89254d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,13 @@ jobs: build_matrix: strategy: matrix: - os: [windows-latest, macos-15-intel] + os: [windows-latest, macos-15-intel, ubuntu-latest] if: github.event.pull_request.merged == true runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Python (MacOS) if: ${{ matrix.os == 'macos-15-intel' }} @@ -25,11 +25,18 @@ jobs: - name: Install Python (Windows) if: ${{ matrix.os == 'windows-latest' }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.10' architecture: 'x64' + - name: Install Python (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/setup-python@v5 + with: + python-version: '3.10' + architecture: 'x64' + - name: Install Requirements (MacOS) if: ${{ matrix.os == 'macos-15-intel' }} run: | @@ -40,6 +47,11 @@ jobs: run: | pip install -r requirements.txt + - name: Install Requirements (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + pip install -r requirements.txt + - name: Run PyInstaller (MacOS) if: ${{ matrix.os == 'macos-15-intel' }} run: | @@ -50,6 +62,11 @@ jobs: run: | pyinstaller PySN.py -w --add-data "AphIcon.ico;." --icon="AphIcon.ico" + - name: Run PyInstaller (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + pyinstaller PySN.py -w --onefile + - name: Move and Zip (MacOS) if: ${{ matrix.os == 'macos-15-intel' }} run: | @@ -64,6 +81,13 @@ jobs: cp -r dist/* windows Compress-Archive -Path "windows/*" -DestinationPath PySN_Windows.zip + - name: Move and Zip (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + mkdir linux + cp dist/PySN linux + (cd linux/ && zip -r -X ../PySN_Linux.zip .) + - name: Upload Artifact (MacOS) if: ${{ matrix.os == 'macos-15-intel' }} uses: actions/upload-artifact@v4 @@ -78,12 +102,19 @@ jobs: name: PySN_Windows.zip path: PySN_Windows.zip + - name: Upload Artifact (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v4 + with: + name: PySN_Linux.zip + path: PySN_Linux.zip + create_release: needs: build_matrix runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download Artifacts uses: actions/download-artifact@v4 @@ -97,35 +128,25 @@ jobs: name: PySN_Windows.zip path: ./artifacts + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: PySN_Linux.zip + path: ./artifacts + - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v2.5.4 - release_name: v2.5.4 + tag_name: v2.5.5 + name: v2.5.5 body: | - Stop downloads and reset progress bar when the clear list button is pressed. + Test. draft: false prerelease: false - - - name: Upload Release Asset (Windows) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./artifacts/PySN_Windows.zip - asset_name: PySN_Windows.zip - asset_content_type: application/zip - - - name: Upload Release Asset (MacOS) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./artifacts/PySN_MacOS.zip - asset_name: PySN_MacOS.zip - asset_content_type: application/zip + files: | + ./artifacts/PySN_MacOS.zip + ./artifacts/PySN_Windows.zip + ./artifacts/PySN_Linux.zip From a6df3c9f15a6ae5be40f839e8c425631e92cb7bb Mon Sep 17 00:00:00 2001 From: Aphelion <61633628+AphelionWasTaken@users.noreply.github.com> Date: Sun, 3 May 2026 14:12:22 -0500 Subject: [PATCH 2/2] Change notes --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f89254d..179b290 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -143,7 +143,7 @@ jobs: tag_name: v2.5.5 name: v2.5.5 body: | - Test. + Create Linux release. draft: false prerelease: false files: |