fix: 保留 macOS 发布包中的符号链接 (#1069) #230
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: Release for windows | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build-n-publish: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up Python | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: "3.11" | |
| - name: Build | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| pip install pyinstaller-versionfile | |
| pip install -e .[qt,win32,battery,cookies,ytdl,ai] | |
| - name: Download mpv-1.dll | |
| run: | | |
| choco install curl | |
| curl -L https://github.com/feeluown/FeelUOwn/releases/download/v3.8/mpv-1.dll -o mpv-1.dll | |
| - name: Bundle | |
| run: | | |
| # Add current working directory to path so that mpv-1.dll can be found. | |
| $env:path += ";." | |
| make bundle | |
| - name: Archive | |
| run: | | |
| # List dist to help double check if bundle is ok. | |
| ls dist/ | |
| powershell Compress-Archive dist/FeelUOwn dist/FeelUOwn-windows.zip | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: FeelUOwn-windows.zip | |
| path: dist/FeelUOwn-windows.zip | |
| - name: Upload to release page | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| files: dist/FeelUOwn-windows.zip | |
| - name: Upload to nightly | |
| if: github.ref == 'refs/heads/master' | |
| uses: softprops/action-gh-release@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| files: dist/FeelUOwn-windows.zip | |
| tag_name: nightly |