Update build-macos.yml #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build macOS App | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| release: | |
| types: [ published ] | |
| jobs: | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install system dependencies | |
| run: | | |
| brew install exiftool libraw | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pyinstaller | |
| pip install exifread | |
| - name: Clean previous build artifacts | |
| run: | | |
| rm -rf dist | |
| rm -rf build | |
| rm -rf __pycache__ | |
| rm -rf *.spec | |
| # PySide6 특정 심볼릭 링크 충돌 방지 | |
| rm -rf /Users/runner/work/VibeCulling/VibeCulling/dist/VibeCulling/_internal/PySide6/Qt/lib/Qt3DAnimation.framework/Resources | |
| rm -rf /Users/runner/work/VibeCulling/VibeCulling/dist/VibeCulling/_internal/PySide6 | |
| - name: Build macOS app | |
| run: | | |
| chmod +x build_mac_app.sh | |
| ./build_mac_app.sh | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: VibeCulling-macOS | |
| path: dist/ |