diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ddeca82..030fe16 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -164,3 +164,16 @@ Downloads per version, update checks and repo traffic, all from GitHub's public ## Reporting bugs Use **Report a problem…** in Menew's right-click menu: it opens a GitHub issue with your versions filled in. Or open an [issue](https://github.com/Quost/menew/issues/new/choose) directly. + +## Promo video + +The promo video is rendered off-screen from demo data, so it never shows your real screen and needs no screen recording permission: + +```bash +./build.sh +build/Menew.app/Contents/MacOS/Menew --video-frames /tmp/frames -language en +swift scripts/make-video.swift /tmp/frames /tmp/video-out +ffmpeg -framerate 30 -i /tmp/video-out/%04d.jpg -c:v libx264 -crf 26 -pix_fmt yuv420p -movflags +faststart menew.mp4 +``` + +The video has no burned-in text besides shortcuts and the address, so one file serves every language. diff --git a/README.md b/README.md index a597af8..9487e7c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@
+ + ## Highlights ### 🧠 Memory — ⌃⌥⌘K diff --git a/Sources/Menew/App.swift b/Sources/Menew/App.swift index f891f4b..af93e99 100644 --- a/Sources/Menew/App.swift +++ b/Sources/Menew/App.swift @@ -17,6 +17,8 @@ enum MenewMain { if !DemoMode.isOn { Migration.run() } if let i = CommandLine.arguments.firstIndex(of: "--snapshot"), CommandLine.arguments.count > i + 1 { Snapshot.run(into: URL(fileURLWithPath: CommandLine.arguments[i + 1])) + } else if let i = CommandLine.arguments.firstIndex(of: VideoFrames.flag), CommandLine.arguments.count > i + 1 { + VideoFrames.run(into: URL(fileURLWithPath: CommandLine.arguments[i + 1])) } else if let i = CommandLine.arguments.firstIndex(of: "--preview"), CommandLine.arguments.count > i + 1 { Snapshot.preview(tab: CommandLine.arguments[i + 1]) } else if CommandLine.arguments.contains("--hardware") { diff --git a/Sources/Menew/VideoFrames.swift b/Sources/Menew/VideoFrames.swift new file mode 100644 index 0000000..e2435ed --- /dev/null +++ b/Sources/Menew/VideoFrames.swift @@ -0,0 +1,80 @@ +import AppKit +import SwiftUI + +/// `Menew --demo --video-frames