From c95d2fd71c337108eb8d4a3c2ea7549df9c5fa73 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Fri, 5 Dec 2025 22:01:59 -0600 Subject: [PATCH] chore: update GitHub Actions workflow for artifact handling and distribution scripts - Changed artifact upload and download actions to specific commit versions for stability. - Introduced new distribution scripts for various platforms in the build configuration. - Updated artifact naming patterns for macOS DMG files to ensure consistency. --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22c8e2b..6657362 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,7 +59,7 @@ jobs: run: npm run build-frontend - name: Upload frontend artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: frontend-build path: meshchatx/public @@ -79,18 +79,21 @@ jobs: python: "3.12" release_artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe" build_input: build_windows + dist_script: dist-prebuilt - name: mac os: macos-14 node: 18 python: "3.11" release_artifacts: "dist/*-mac-*.dmg" build_input: build_mac + dist_script: dist:mac-universal - name: linux os: ubuntu-latest node: 22 python: "3.12" release_artifacts: "dist/*-linux.AppImage,dist/*-linux.deb,python-dist/*.whl" build_input: build_linux + dist_script: dist-prebuilt permissions: contents: write steps: @@ -150,7 +153,7 @@ jobs: if: | github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs[matrix.build_input] == true) - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: name: frontend-build path: meshchatx/public @@ -177,7 +180,7 @@ jobs: if: | github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs[matrix.build_input] == true) - run: npm run dist-prebuilt + run: npm run ${{ matrix.dist_script }} - name: Upload build artifacts if: | @@ -189,7 +192,7 @@ jobs: path: | dist/*-win-installer.exe dist/*-win-portable.exe - dist/*-mac.dmg + dist/*-mac-*.dmg dist/*-linux.AppImage dist/*-linux.deb python-dist/*.whl @@ -204,7 +207,7 @@ jobs: contents: write steps: - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: path: artifacts