Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tauri #748

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Tauri #748

merged 1 commit into from
Mar 16, 2024

Conversation

martpie
Copy link
Owner

@martpie martpie commented Mar 3, 2024

Tauri

This is a half-working copy of Museeks ported to Tauri 2.0.

This is highly experimental, many things are broken. Lots of non-idiomatic Rust (and React actually).

yarn
cargo test --manifest-path src-tauri/Cargo.toml
yarn tauri dev

@martpie
Copy link
Owner Author

martpie commented Mar 3, 2024

What's left?

[edit] see #751

@martpie martpie force-pushed the pr748 branch 4 times, most recently from e9ff115 to 231883d Compare March 12, 2024 15:42
@uklotzde
Copy link
Contributor

Hi. Your questions regarding Lofty have caught my attention ;) This project looks interesting.

Over the years I have a built a sophisticated backend in Rust, but don't have an appropriate frontend yet. Background: I am a backend developer with almost zero UI skills and this was my starter project for learning Rust back in 2018.

For demonstration purposes and for conveniently synchronizing my library I recently added a demo app (native, egui, embedded SQLite) with a very basic query parser for searching. Should work on any platform without external dependencies. Does not touch your precious files! Writing back metadata to files is implemented, but not available in the API layer.

For personal use I maintain a read-only integration for Mixxx with a local, standalone web service that is also part of the (bloated) monorepo. Mixxx is my frontend for searching, selecting, and playing music. The (undisclosed) C++/Qt/JSON integration in Mixxx is cumbersome and brittle, not recommended.

Running this branch unfortunately didn't work. It also requires to disable macOS-specific code on Linux, otherwise even the build fails.

Once you have the basics working I am curious to see if it would be possible to attach my backend components. Disclaimer: I have no experience with Tauri.

@martpie
Copy link
Owner Author

martpie commented Mar 13, 2024

Hi

Running this branch unfortunately didn't work. It also requires to disable macOS-specific code on Linux, otherwise even the build fails.

I am mainly developing this port on macOS, and sometimes testing things on Windows on my desktop. I still have to spinup an ubuntu virtual machine and try to see what's failing there.

Or I should try to fix the CI, which should build the app by itself on win+mac+linux.

I'll add point in the todo-list for those.

@martpie martpie force-pushed the pr748 branch 3 times, most recently from 66fc92b to 62c41b1 Compare March 14, 2024 02:10
@uklotzde
Copy link
Contributor

I only get this far on Linux:

image

image

@Serial-ATA
Copy link

@uklotzde Last year, MediaSession support was disabled by default in webkit2gtk: WebKit/WebKit@9a224f3

This is the issue: https://bugs.webkit.org/show_bug.cgi?id=247527

So, you'll have to build webkit2gtk with the experimental ENABLE_MEDIA_SESSION feature. This is only an issue on Linux.

@uklotzde
Copy link
Contributor

So, you'll have to build webkit2gtk with the experimental ENABLE_MEDIA_SESSION feature. This is only an issue on Linux.

Yikes. Even if this might be a cumbersome but feasible option during development. It is not an option for any regular user who wants to use the app.

@martpie
Copy link
Owner Author

martpie commented Mar 14, 2024

Let me push a commit to enable graceful degradation for these features.

If MPRIS cannot work in Linux, then too bad, but it should not have to hard crash the app.

@martpie
Copy link
Owner Author

martpie commented Mar 15, 2024

Latest version of this branch should not crash if mediaSession is not available

This is a half-working copy of Museeks ported to Tauri 2.0.

This is highly experimental, many things are broken. Lots of non-idiomatic Rust (and React actually).

```bash
yarn
cargo test --manifest-path src-tauri/Cargo.toml
yarn tauri dev
```
@martpie martpie changed the base branch from master to tauri March 16, 2024 21:45
@martpie
Copy link
Owner Author

martpie commented Mar 16, 2024

Let's merge to a dedicated tauri branch :)

@martpie martpie merged commit 1a096db into tauri Mar 16, 2024
6 of 11 checks passed
@martpie martpie deleted the pr748 branch March 17, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants