Skip to content

Commit

Permalink
redhat still not working, maybe need to zip mac for chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
zehdari committed Sep 28, 2024
1 parent 255fbb6 commit 9f7a1f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,30 @@ jobs:
run: |
pyinstaller --onefile --windowed SortingApp.py
# macOS-specific step to set executable permissions
- name: Set permissions for macOS app
# macOS-specific step to set executable permissions and zip the .app bundle
- name: Set permissions and zip .app for macOS
if: matrix.os == 'macos-latest'
run: |
chmod +x dist/SortingApp.app/Contents/MacOS/SortingApp
cd dist
zip -r SortingApp-macOS.zip SortingApp.app
# Upload the native Ubuntu/macOS/Windows builds
- name: Upload executable (Native Builds)
uses: actions/upload-artifact@v3
with:
name: executable-${{ matrix.os }}
path: dist/*
path: |
dist/*.zip
dist/*.exe
dist/*.AppImage
# Additional step: Build for Red Hat-compatible (via Docker) on Ubuntu
- name: Build for Red Hat-compatible (via Docker)
if: matrix.os == 'ubuntu-latest'
run: |
docker run --rm -v ${{ github.workspace }}:/src -w /src almalinux:8 \
bash -c "yum install -y epel-release && \
yum groupinstall -y 'C Development Tools and Libraries' && \
yum install -y mesa-libGL-devel python3 python3-devel gcc zlib-devel qt5-qtbase-devel && \
python3 -m pip install wheel && \
python3 -m pip install -r requirements.txt && \
Expand Down

0 comments on commit 9f7a1f0

Please sign in to comment.