server: fix crash when any webserver dependency is not installed (#877) #76
This file contains 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.10" | |
- name: Build | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyqt5 | |
pip install pyinstaller | |
pip install pyinstaller-versionfile | |
pip install -e .[win32,battery,cookies,ytdl] | |
- 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@v3 | |
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 |