From 18abed6f86b1241147e853c86f9a731fb9f3d26d Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 26 Jun 2025 21:58:14 -0500 Subject: disable optimizations and fix github action --- .github/workflows/pyinstaller-release.yaml | 31 +++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to '.github/workflows/pyinstaller-release.yaml') diff --git a/.github/workflows/pyinstaller-release.yaml b/.github/workflows/pyinstaller-release.yaml index c1c3700..da3596f 100644 --- a/.github/workflows/pyinstaller-release.yaml +++ b/.github/workflows/pyinstaller-release.yaml @@ -18,12 +18,17 @@ jobs: - name: Install Webpack dependencies working-directory: ./static - run: npm install + run: npm ci - name: Run Webpack working-directory: ./static run: npx webpack + - name: Verify dist directory + working-directory: ./static + run: | + ls -la dist || { echo "Error: dist directory not found"; exit 1; } + - name: Upload frontend bundle uses: actions/upload-artifact@v4 with: @@ -40,14 +45,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 -# - name: Run pyinstaller -# uses: sayyid5416/pyinstaller@v1 -# with: -# python_arch: ${{ matrix.arch }} -# spec: 'pix.spec' -# requirements: 'requirements.txt' -# #upload_exe_with_name: 'pix' -# options: --onefile + - name: Download frontend bundle + uses: actions/download-artifact@v4 + with: + name: frontend-bundle + path: ./static/dist - name: Set up QEMU for cross-architecture if: matrix.arch == 'arm64' @@ -77,9 +79,9 @@ jobs: TARGET_ARCH: ${{ matrix.arch }} run: | if [ "${{ matrix.arch }}" = "arm64" ]; then - pyinstaller --target-arch aarch64 --onefile --add-data "./static/dist:static" --add-data "./static/public:public" --hidden-import=flask_socketio --hidden-import=engineio pix.py + ARCHITECTURE=aarch64 pyinstaller pix.spec else - pyinstaller --onefile --add-data "./static/dist:static" --add-data "./static/public:public" --hidden-import=flask_socketio --hidden-import=engineio pix.py + pyinstaller pix.spec fi - name: Rename the executable @@ -99,6 +101,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Download executables + uses: actions/download-artifact@v4 + with: + pattern: pixpy-* + path: ./dist + merge-multiple: true + - name: Create Release and Upload Assets uses: softprops/action-gh-release@v2 with: -- cgit v1.2.3