app: drop the old Tauri front end
tauri-app/ was kept while the native app caught up, and the screens it had are covered now. Its 48 tracked files go; the 7.6 GB of node_modules, dist and target beside them were never tracked and are gone from the working copy too. The docs that said it was still in the tree name two programs now, and the comments that pointed at a file inside it name the old app's file instead, so nothing refers to a folder that is no longer there. The design plans under plans/ keep their wording: they are dated documents, not instructions.
This commit is contained in:
1 parent
046860ad1c
commit
47510c88b5
65 files changed
+27
-16072
No files matched your search
+1
-3
@@ -1,6 +1,6 @@
|
||||
# League Recorder (rune app)
|
||||
|
||||
The native replacement for `tauri-app`. It talks to `record-daemon` over the daemon's existing
|
||||
The native front end for `record-daemon`. It talks to the daemon over its existing
|
||||
named-pipe protocol and draws with [rune](https://github.com/anomalyco/rune).
|
||||
|
||||
## Run it
|
||||
@@ -118,8 +118,6 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
|
||||
runtime beside the exe. `cargo install cargo-packager --locked && cargo packager --release`.
|
||||
On the first run the app downloads ffmpeg (`--fetch-ffmpeg` does it from a shell), so clip
|
||||
export is ready before the first clip. The installer has not been run on a clean VM yet.
|
||||
10. Parity: `tauri-app` is still in the tree. Delete it once the items above are verified on a
|
||||
machine with a live League Client.
|
||||
|
||||
### The recording screen
|
||||
|
||||
|
||||
+5
-8
@@ -1,4 +1,4 @@
|
||||
Rune app (replaces tauri-app)
|
||||
Rune app
|
||||
|
||||
Decided
|
||||
- UI framework: rune (github.com/anomalyco/rune, pin a dev rev). gpui is the
|
||||
@@ -49,17 +49,14 @@ framework, stop and switch to gpui before writing anything else.
|
||||
8. Installer: cargo-packager NSIS target with the bundle list below.
|
||||
Done when the installer works on a clean Windows VM and the app
|
||||
records a real game end to end.
|
||||
9. Parity check against tauri-app, then delete it.
|
||||
|
||||
Stable contracts
|
||||
- record-daemon does not change. The IPC protocol (IpcCommand serde types
|
||||
over named pipes) is the versioned interface between app and daemon.
|
||||
- Port tauri-app/src-tauri/src/daemon_ipc.rs (645 lines, pipe client) into
|
||||
app/ nearly as-is; it is plain Rust + tokio.
|
||||
- Port the disk-side helpers from src-tauri/src/lib.rs: get_game_history,
|
||||
export_clip, find_video_file and the ffmpeg_sidecar download logic.
|
||||
- Keep tauri-app/ working until the native app reaches feature parity.
|
||||
Build app/ as a separate crate; do not mutate tauri-app in place.
|
||||
- The pipe client came from the old Tauri app's daemon_ipc.rs (645 lines),
|
||||
ported into app/ nearly as-is; it is plain Rust + tokio.
|
||||
- The disk-side helpers came from its lib.rs: get_game_history, export_clip,
|
||||
find_video_file and the ffmpeg_sidecar download logic.
|
||||
|
||||
Installer contents
|
||||
- app exe, record-daemon.exe, obs.dll, ffmpeg sidecar, libmpv-2.dll.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! Finding, starting and logging the record-daemon process.
|
||||
//!
|
||||
//! Ported from `tauri-app/src-tauri/src/daemon_ipc.rs`. The daemon binary ships next to the
|
||||
//! Ported from the old Tauri app's `daemon_ipc.rs`. The daemon binary ships next to the
|
||||
//! app; inside a checkout it is found in `record-daemon/target/{release,debug}`.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Clip export with ffmpeg, ported from `export_clip` and `export_clip_precise` in
|
||||
//! `tauri-app/src-tauri/src/lib.rs`.
|
||||
//! the old Tauri app's `lib.rs`.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::Mutex;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
//! Text formatting shared by the screens, matching `tauri-app/src/types/timeline.ts`.
|
||||
//! Text formatting shared by the screens, matching the old Tauri app's `types/timeline.ts`.
|
||||
|
||||
use chrono::{DateTime, Local, Utc};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Highlight clips from timeline events, ported from `computeHighlights` in
|
||||
//! `tauri-app/src/types/timeline.ts`.
|
||||
//! the old Tauri app's `types/timeline.ts`.
|
||||
|
||||
use crate::history::{Timeline, TimelineEvent};
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
//! Reading the daemon's timelines from disk and the values the screens show.
|
||||
//!
|
||||
//! Ported from `tauri-app/src-tauri/src/lib.rs` (`get_game_history`, `get_timeline`,
|
||||
//! `find_video_file`) and the extractors in `tauri-app/src/types/timeline.ts`.
|
||||
//! Ported from the old Tauri app's `lib.rs` (`get_game_history`, `get_timeline`,
|
||||
//! `find_video_file`) and the extractors in its `types/timeline.ts`.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! Client for the record-daemon's IPC protocol.
|
||||
//!
|
||||
//! Ported from `tauri-app/src-tauri/src/daemon_ipc.rs`. The wire format is the daemon's
|
||||
//! Ported from the old Tauri app's `daemon_ipc.rs`. The wire format is the daemon's
|
||||
//! (`record-daemon/src/ipc/protocol.rs`): one JSON object per line over a named pipe, a
|
||||
//! `request` answered by one `response` with the same id.
|
||||
//!
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! League Recorder: a native desktop app for the record-daemon.
|
||||
//!
|
||||
//! Replaces `tauri-app`. The daemon keeps its IPC protocol; this app is a client of it.
|
||||
//! Replaces the old Tauri app. The daemon keeps its IPC protocol; this app is a client of it.
|
||||
//! `cargo run` opens the window; `cargo run -- --snap out.png` renders it headless.
|
||||
//!
|
||||
//! The binary is a windowed app on Windows, so launching it from Explorer, the Run key or the
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
//! Windows integration that the Tauri app got from plugins: launch at login, one instance,
|
||||
//! Windows integration that the old Tauri app got from plugins: launch at login, one instance,
|
||||
//! toast notifications and the tray icon.
|
||||
|
||||
/// The app's reverse-DNS id, used for single-instance and notifications.
|
||||
|
||||
Reference in new issue
Block a user