Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ddbb93537 | |||
| b7e50455ad | |||
| 0006620eb5 |
@@ -60,6 +60,16 @@ jobs:
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install native deps for dbus-python + PyGObject
|
||||
run: |
|
||||
# PyGObject >= 3.52 builds against girepository-2.0 (merged into
|
||||
# GLib 2.80), not the old standalone girepository-1.0. ubuntu-latest
|
||||
# (24.04) ships it as libgirepository-2.0-dev.
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
libdbus-1-dev libglib2.0-dev pkg-config \
|
||||
libcairo2-dev libgirepository-2.0-dev
|
||||
|
||||
- name: Build Linux distribution
|
||||
run: |
|
||||
chmod +x build-dist-linux.sh
|
||||
|
||||
@@ -60,9 +60,11 @@ jobs:
|
||||
| Windows (installer) | \`MediaServer-{tag}-setup.exe\` |
|
||||
| Windows (portable) | \`MediaServer-{tag}-win-x64.zip\` |
|
||||
| Linux | \`MediaServer-{tag}-linux-x64.tar.gz\` |
|
||||
| macOS (Apple Silicon) | \`MediaServer-{tag}-macos-arm64.tar.gz\` |
|
||||
| macOS (Intel) | \`MediaServer-{tag}-macos-x86_64.tar.gz\` |
|
||||
''').strip())
|
||||
# TODO(macos-runner): re-add the macOS rows below once a macOS
|
||||
# runner is connected to Gitea and the build-macos job is re-enabled.
|
||||
# | macOS (Apple Silicon) | \`MediaServer-{tag}-macos-arm64.tar.gz\` |
|
||||
# | macOS (Intel) | \`MediaServer-{tag}-macos-x86_64.tar.gz\`
|
||||
|
||||
print(json.dumps('\n\n'.join(sections)))
|
||||
")
|
||||
@@ -191,10 +193,13 @@ jobs:
|
||||
|
||||
- name: Install native deps for dbus-python + PyGObject
|
||||
run: |
|
||||
# PyGObject >= 3.52 builds against girepository-2.0 (merged into
|
||||
# GLib 2.80), not the old standalone girepository-1.0. ubuntu-latest
|
||||
# (24.04) ships it as libgirepository-2.0-dev.
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
libdbus-1-dev libglib2.0-dev pkg-config \
|
||||
libcairo2-dev libgirepository1.0-dev
|
||||
libcairo2-dev libgirepository-2.0-dev
|
||||
|
||||
- name: Build Linux distribution
|
||||
run: |
|
||||
@@ -238,10 +243,16 @@ jobs:
|
||||
|
||||
# --- Build macOS tarball (best-effort; requires a macos runner) ---
|
||||
# PyObjC wheels are macOS-only, so this job must run on a real Mac.
|
||||
# If your Gitea instance has no macos runners, the job is skipped at
|
||||
# scheduling time and the rest of the release still ships.
|
||||
#
|
||||
# TODO(macos-runner): Temporarily disabled via `if: false` because the
|
||||
# Gitea instance currently has no macOS runner attached. To re-enable:
|
||||
# 1. Connect a macOS runner to Gitea
|
||||
# 2. Delete the `if: false` line below
|
||||
# 3. Restore the macOS rows in the Downloads table generated by the
|
||||
# create-release job (search for the matching TODO(macos-runner)).
|
||||
build-macos:
|
||||
needs: create-release
|
||||
if: false
|
||||
runs-on: macos-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
|
||||
@@ -57,10 +57,13 @@ jobs:
|
||||
|
||||
- name: Install Linux system deps for dbus-python + PyGObject
|
||||
run: |
|
||||
# PyGObject >= 3.52 builds against girepository-2.0 (merged into
|
||||
# GLib 2.80), not the old standalone girepository-1.0. ubuntu-latest
|
||||
# (24.04) ships it as libgirepository-2.0-dev.
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
libdbus-1-dev libglib2.0-dev pkg-config \
|
||||
libcairo2-dev libgirepository1.0-dev
|
||||
libcairo2-dev libgirepository-2.0-dev
|
||||
|
||||
- name: Install with linux extra
|
||||
run: |
|
||||
@@ -80,6 +83,12 @@ jobs:
|
||||
export MEDIA_SERVER_VISUALIZER_ENABLED=false
|
||||
export MEDIA_SERVER_UPDATE_CHECK_ENABLED=false
|
||||
dbus-run-session -- bash -c '
|
||||
# First run writes a default config (random token) and exits 0
|
||||
# instead of serving, so the server is never left running in
|
||||
# insecure no-auth mode. Run once to seed the config; the real
|
||||
# launch below then finds it and actually boots. /api/health needs
|
||||
# no auth, so the generated token is irrelevant here.
|
||||
python -m media_server.main --no-tray --port 18765 || true
|
||||
python -m media_server.main --no-tray --port 18765 &
|
||||
SERVER_PID=$!
|
||||
for i in $(seq 1 30); do
|
||||
|
||||
Reference in New Issue
Block a user