Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
done

# Pushes are signed with the Developer ID certificate when the secrets exist;
# release tags are also notarized and attached to the GitHub release (and
# release tags are also notarized and their DMG attached to the GitHub release (and
# fail without the secrets). PRs build ad-hoc signed.
mac-app:
name: macOS app
Expand Down Expand Up @@ -86,15 +86,22 @@ jobs:
run: |
echo "$KEY_BASE64" | base64 --decode > "$RUNNER_TEMP/notary.p8"
echo "NOTARY_KEY_PATH=$RUNNER_TEMP/notary.p8" >> "$GITHUB_ENV"
- name: Build LumeRecorder.app (universal)
# ffmpeg takes the longest; it only changes with build-ffmpeg.sh.
- uses: actions/cache@v4
with:
path: |
MacApp/.build/ffmpeg-*/ffmpeg
MacApp/.build/ffmpeg-*/*.txt
key: ffmpeg-${{ runner.os }}-${{ hashFiles('MacApp/scripts/build-ffmpeg.sh') }}
- name: Build LumeRecorder.app + DMG (universal)
env:
NOTARY_KEY_ID: ${{ secrets.NOTARY_KEY_ID }}
NOTARY_ISSUER_ID: ${{ secrets.NOTARY_ISSUER_ID }}
run: MacApp/scripts/build-app.sh
- uses: actions/upload-artifact@v4
with:
name: LumeRecorder-macOS
path: MacApp/dist/*.zip
path: MacApp/dist/*.dmg
if-no-files-found: error
- name: Attach to GitHub release
if: env.IS_RELEASE == 'true'
Expand All @@ -103,7 +110,7 @@ jobs:
run: |
gh release view "$GITHUB_REF_NAME" > /dev/null 2>&1 \
|| gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --generate-notes --verify-tag
gh release upload "$GITHUB_REF_NAME" MacApp/dist/*.zip --clobber
gh release upload "$GITHUB_REF_NAME" MacApp/dist/*.dmg --clobber
- name: Remove signing material
if: always()
run: |
Expand Down
7 changes: 5 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ Sources/lume-recorder/ CLI: serve (default) | pair | server-id
MacApp/ LumeRecorder.app: separate package, SwiftUI MenuBarExtra
Sources/LumeRecorderApp/ ServerController (ServiceGroup, polling, sleep assertion,
SMAppService), menu UI, file log handler
scripts/build-app.sh universal build → .app bundle (+ optional ffmpeg, signing,
notarization) → MacApp/dist/
Resources/ Info.plist, AppIcon.icon (Lume's icon + record badge),
dmg-settings.py (dmgbuild layout)
scripts/build-ffmpeg.sh pinned LGPL ffmpeg, universal, system libraries only
scripts/build-app.sh universal build → .app (bundled ffmpeg, icon, signing,
notarization) → drag-to-Applications DMG in MacApp/dist/
Tests/RecorderCoreTests/ Swift Testing: store, scheduler (fake launcher), recovery,
pairing, signing, routes (HummingbirdTesting), real ffmpeg
docker/entrypoint.sh avahi service file + avahi-daemon, then drop to `lume`
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project are documented here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
[Semantic Versioning](https://semver.org/).

## [Unreleased]

### Changed
- The Mac app ships as a drag-to-Applications DMG instead of a zip, with its
own icon. It bundles ffmpeg 9.0.2 (LGPL, built from the official source by
`MacApp/scripts/build-ffmpeg.sh`, system libraries only), so users install
nothing else.

## [0.3.0] - 2026-10-27

### Added
Expand Down
17 changes: 17 additions & 0 deletions MacApp/Resources/AppIcon.icon/Assets/lume-bw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions MacApp/Resources/AppIcon.icon/Assets/record-dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 161 additions & 0 deletions MacApp/Resources/AppIcon.icon/icon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"fill": {
"automatic-gradient": "display-p3:0.95393,1.00000,0.95327,1.00000"
},
"groups": [
{
"layers": [
{
"blend-mode": "normal",
"glass": false,
"hidden": false,
"image-name": "record-dot.svg",
"name": "record-dot",
"position": {
"scale": 2.4,
"translation-in-points": [
250,
250
]
}
}
],
"lighting": "combined",
"shadow": {
"kind": "neutral",
"opacity": 0.5
},
"specular": true,
"translucency": {
"enabled": false,
"value": 0.5
}
},
{
"layers": [
{
"blend-mode": "normal",
"fill-specializations": [
{
"value": {
"linear-gradient": [
"display-p3:1.00000,0.54437,0.84501,1.00000",
"display-p3:0.43938,0.00000,0.70496,1.00000"
],
"orientation": {
"start": {
"x": 0.5,
"y": 0.27784247008866125
},
"stop": {
"x": 0.189814101472092,
"y": 0.8720039438726773
}
}
}
},
{
"appearance": "dark",
"value": {
"linear-gradient": [
"display-p3:1.00000,0.54510,0.84314,1.00000",
"display-p3:0.43922,0.00000,0.70588,1.00000"
],
"orientation": {
"start": {
"x": 0.5,
"y": 0.27784247008866125
},
"stop": {
"x": 0.189814101472092,
"y": 0.8720039438726773
}
}
}
}
],
"glass": false,
"hidden": false,
"image-name": "lume-bw.svg",
"name": "lume-bw",
"position": {
"scale": 2,
"translation-in-points": [
0,
0
]
}
},
{
"blend-mode": "normal",
"fill-specializations": [
{
"value": {
"linear-gradient": [
"display-p3:0.31994,0.54437,0.84501,1.00000",
"display-p3:0.96783,0.93485,0.00000,1.00000"
],
"orientation": {
"start": {
"x": 0.5,
"y": 0.27784247008866125
},
"stop": {
"x": 0.189814101472092,
"y": 0.8720039438726773
}
}
}
},
{
"appearance": "dark",
"value": {
"linear-gradient": [
"display-p3:1.00000,0.54437,0.84501,1.00000",
"display-p3:0.43938,0.00000,0.70496,1.00000"
],
"orientation": {
"start": {
"x": 0.5,
"y": 0.27784247008866125
},
"stop": {
"x": 0.189814101472092,
"y": 0.8720039438726773
}
}
}
}
],
"glass": false,
"hidden": true,
"image-name": "lume-bw.svg",
"name": "lume-bw",
"position": {
"scale": 2,
"translation-in-points": [
0,
0
]
}
}
],
"lighting": "individual",
"shadow": {
"kind": "neutral",
"opacity": 0.5
},
"specular": true,
"translucency": {
"enabled": true,
"value": 0.5
}
}
],
"supported-platforms": {
"circles": [
"watchOS"
],
"squares": "shared"
}
}
4 changes: 4 additions & 0 deletions MacApp/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<string>LumeRecorder</string>
<key>CFBundleExecutable</key>
<string>LumeRecorder</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIconName</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>__BUNDLE_ID__</string>
<key>CFBundleInfoDictionaryVersion</key>
Expand Down
29 changes: 29 additions & 0 deletions MacApp/Resources/dmg-settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# dmgbuild settings for LumeRecorder-<version>.dmg: the app next to an
# Applications link, with an arrow between them.
# Used by scripts/build-app.sh: dmgbuild -s dmg-settings.py -D app=… -D icon=…
import os.path

app = defines["app"] # noqa: F821 (provided by dmgbuild)
app_name = os.path.basename(app)

format = "ULFO"
filesystem = "APFS"
files = [app]
symlinks = {"Applications": "/Applications"}
icon = defines["icon"] # noqa: F821

background = "builtin-arrow"
window_rect = ((200, 200), (640, 360))
default_view = "icon-view"
show_status_bar = False
show_tab_view = False
show_toolbar = False
show_pathbar = False
show_sidebar = False
icon_size = 128
text_size = 13
hide_extensions = [app_name]
icon_locations = {
app_name: (160, 140),
"Applications": (480, 140),
}
2 changes: 1 addition & 1 deletion MacApp/Sources/LumeRecorderApp/MenuContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct MenuContent: View {
VStack(alignment: .leading, spacing: 4) {
Label("ffmpeg not found", systemImage: "exclamationmark.triangle.fill")
.foregroundStyle(.orange)
Text("Recordings fail until ffmpeg is installed. Install it with Homebrew (`brew install ffmpeg`), then restart the recorder.")
Text("LumeRecorder can't find the ffmpeg it ships with, so recordings fail. Download LumeRecorder again and replace the app.")
.font(.caption).foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true)
}
Expand Down
Loading
Loading