macOS (Apple silicon) now plays, browses and updates like Windows: - Video: libmpv's render API draws into a CAOpenGLLayer beneath the WKWebView, with the miniplayer rectangle, HDR passthrough through extended dynamic range (PQ/BT.2020) and display-sleep prevention. - Window: native traffic lights on the top bar's centre line, hidden with the player's controls; the page's caption buttons are Windows-only. - Interface: macOS shortcut labels (⌘K, ⌘[, ⌃⌘F), Plex identifies the player as a Mac, and header values are kept ASCII (Mac computer names usually contain a curly apostrophe). - The window appears without waiting for an animation frame, which WKWebView doesn't run in a hidden window. - Credentials: release builds use the Keychain and are signed with a lasting self-signed certificate so access survives updates; debug builds keep tokens in a private file to avoid prompts on every rebuild. - Bundling: scripts/fetch-libmpv.sh makes Homebrew's libmpv and its libraries self-contained; scripts/build.sh builds the .app, .dmg and signed update archive. Releases now carry both platforms: publish-release.mjs uploads each machine's build into one release, and update-manifest.mjs writes the feed from that release's assets, refusing while a platform is missing. The updater uses a new signing key (public key in tauri.conf.json), so existing installs must be reinstalled once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
name: Build Kaleido Desktop installers
|
|
# Started by hand (Actions, then this workflow, then Run). Each platform needs a runner
|
|
# with its label; without one the job would wait indefinitely, so this never runs on
|
|
# push. Releases can instead be built with scripts/build.ps1 (Windows) or
|
|
# scripts/build.sh (macOS) and published with scripts/publish-release.mjs.
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: windows
|
|
runner: windows-latest
|
|
# - os: macos
|
|
# runner: macos-latest
|
|
# - os: linux
|
|
# runner: ubuntu-latest
|
|
runs-on: ${{ matrix.runner }}
|
|
timeout-minutes: 90
|
|
steps:
|
|
- uses: https://data.forgejo.org/actions/checkout@v4.4.0
|
|
- name: Build (Windows)
|
|
if: matrix.os == 'windows'
|
|
shell: pwsh
|
|
env:
|
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
|
run: ./scripts/build.ps1
|
|
- name: Build (macOS)
|
|
if: matrix.os == 'macos'
|
|
env:
|
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
|
run: sh scripts/build.sh
|
|
- name: Build (Linux)
|
|
if: matrix.os == 'linux'
|
|
run: |
|
|
sh scripts/fetch-libmpv.sh
|
|
npm ci
|
|
npx tauri build
|
|
- uses: https://data.forgejo.org/actions/upload-artifact@v4
|
|
with:
|
|
name: kaleido-${{ matrix.os }}
|
|
path: src-tauri/target/release/bundle/
|