mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
Update GitHub Actions workflow for macOS builds
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build ${{ matrix.os }}
|
name: Build ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # keep other platforms building even if one fails
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
@@ -138,7 +138,7 @@ jobs:
|
|||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile \
|
pyinstaller --windowed \
|
||||||
--add-data "build_info.json:." \
|
--add-data "build_info.json:." \
|
||||||
--exclude-module PyQt6 \
|
--exclude-module PyQt6 \
|
||||||
--exclude-module PyQt5 \
|
--exclude-module PyQt5 \
|
||||||
@@ -150,15 +150,30 @@ jobs:
|
|||||||
--name ${{ env.APP_NAME }} \
|
--name ${{ env.APP_NAME }} \
|
||||||
src/main.py
|
src/main.py
|
||||||
|
|
||||||
|
- name: Install create-dmg (macOS)
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: brew install create-dmg
|
||||||
|
|
||||||
- name: Stage artifact
|
- name: Stage artifact
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist-final
|
mkdir -p dist-final
|
||||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
mv nuitka-build/main.dist dist-final/${{ env.APP_NAME }}
|
mv nuitka-build/main.dist dist-final/${{ env.APP_NAME }}
|
||||||
else
|
elif [ "$RUNNER_OS" == "Linux" ]; then
|
||||||
chmod +x dist/${{ env.APP_NAME }}
|
chmod +x dist/${{ env.APP_NAME }}
|
||||||
mv dist/${{ env.APP_NAME }} dist-final/${{ matrix.artifact_name }}
|
mv dist/${{ env.APP_NAME }} dist-final/${{ matrix.artifact_name }}
|
||||||
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
|
create-dmg \
|
||||||
|
--volname "${{ env.APP_NAME }} Test" \
|
||||||
|
--window-pos 200 120 \
|
||||||
|
--window-size 600 300 \
|
||||||
|
--icon-size 100 \
|
||||||
|
--icon "${{ env.APP_NAME }}.app" 150 150 \
|
||||||
|
--hide-extension "${{ env.APP_NAME }}.app" \
|
||||||
|
--app-drop-link 450 150 \
|
||||||
|
"dist-final/${{ matrix.artifact_name }}.dmg" \
|
||||||
|
"dist/"
|
||||||
fi
|
fi
|
||||||
ls -la dist-final/
|
ls -la dist-final/
|
||||||
|
|
||||||
@@ -181,5 +196,5 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-build
|
name: ${{ matrix.os }}-build
|
||||||
path: dist-final/${{ matrix.artifact_name }}
|
path: dist-final/${{ matrix.artifact_name }}*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|||||||
Reference in New Issue
Block a user