Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ddbb93537 | |||
| b7e50455ad | |||
| 0006620eb5 |
@@ -60,6 +60,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
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
|
- name: Build Linux distribution
|
||||||
run: |
|
run: |
|
||||||
chmod +x build-dist-linux.sh
|
chmod +x build-dist-linux.sh
|
||||||
|
|||||||
@@ -60,9 +60,11 @@ jobs:
|
|||||||
| Windows (installer) | \`MediaServer-{tag}-setup.exe\` |
|
| Windows (installer) | \`MediaServer-{tag}-setup.exe\` |
|
||||||
| Windows (portable) | \`MediaServer-{tag}-win-x64.zip\` |
|
| Windows (portable) | \`MediaServer-{tag}-win-x64.zip\` |
|
||||||
| Linux | \`MediaServer-{tag}-linux-x64.tar.gz\` |
|
| 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())
|
''').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)))
|
print(json.dumps('\n\n'.join(sections)))
|
||||||
")
|
")
|
||||||
@@ -191,10 +193,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install native deps for dbus-python + PyGObject
|
- name: Install native deps for dbus-python + PyGObject
|
||||||
run: |
|
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 update
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
libdbus-1-dev libglib2.0-dev pkg-config \
|
libdbus-1-dev libglib2.0-dev pkg-config \
|
||||||
libcairo2-dev libgirepository1.0-dev
|
libcairo2-dev libgirepository-2.0-dev
|
||||||
|
|
||||||
- name: Build Linux distribution
|
- name: Build Linux distribution
|
||||||
run: |
|
run: |
|
||||||
@@ -238,10 +243,16 @@ jobs:
|
|||||||
|
|
||||||
# --- Build macOS tarball (best-effort; requires a macos runner) ---
|
# --- Build macOS tarball (best-effort; requires a macos runner) ---
|
||||||
# PyObjC wheels are macOS-only, so this job must run on a real Mac.
|
# 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:
|
build-macos:
|
||||||
needs: create-release
|
needs: create-release
|
||||||
|
if: false
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -57,10 +57,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Linux system deps for dbus-python + PyGObject
|
- name: Install Linux system deps for dbus-python + PyGObject
|
||||||
run: |
|
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 update
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
libdbus-1-dev libglib2.0-dev pkg-config \
|
libdbus-1-dev libglib2.0-dev pkg-config \
|
||||||
libcairo2-dev libgirepository1.0-dev
|
libcairo2-dev libgirepository-2.0-dev
|
||||||
|
|
||||||
- name: Install with linux extra
|
- name: Install with linux extra
|
||||||
run: |
|
run: |
|
||||||
@@ -80,6 +83,12 @@ jobs:
|
|||||||
export MEDIA_SERVER_VISUALIZER_ENABLED=false
|
export MEDIA_SERVER_VISUALIZER_ENABLED=false
|
||||||
export MEDIA_SERVER_UPDATE_CHECK_ENABLED=false
|
export MEDIA_SERVER_UPDATE_CHECK_ENABLED=false
|
||||||
dbus-run-session -- bash -c '
|
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 &
|
python -m media_server.main --no-tray --port 18765 &
|
||||||
SERVER_PID=$!
|
SERVER_PID=$!
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
|
|||||||
Reference in New Issue
Block a user