Commit Graph
31 Commits
Author SHA1 Message Date
zarzet 7aa2f37496 chore: remove comments that restate the code
One-line doc comments and inline comments that only repeat the name, the
type or the next statement of what they describe, in the Dart, Kotlin and
desktop runner sources. Comments that state a reason, a constraint, a
unit, a value set or a platform quirk stay. No code changes.
2026-11-17 02:06:37 +07:00
zarzet fbcf276b5b fix(windows): ask for more frames after the window first shows
The engine reports the first frame even when that frame could not be
presented, so the window could show blank and stay blank while the app
was idle. Request a few frames during the first two seconds.
2026-11-16 19:35:33 +07:00
zarzet 962e582acc chore(flutter): move to Flutter 3.50.0 and the material_ui packages
Flutter 3.50 deprecates its built-in Material and Cupertino libraries in
favour of the material_ui and cupertino_ui packages. The imports move
with the official fix (dart fix, migrate_design_widgets); the app's old
two-library theme bridge collapses into one Theme type.

- MaterialExpressiveScope keeps the complete host theme nearest its
  child. The reduced copy made for the expressive widgets now shares the
  app's Theme type and would hide component themes and extensions.
- LegacyThemeBrightness hands the brightness to the glass package, which
  still reads Flutter's built-in theme.
- appLocalizationsDelegates lists the material_ui localization delegates;
  the generated list still names the built-in ones.
- Tests: findByTooltip and pageBack replace the flutter_test helpers that
  only know the built-in widgets, and several tests that had gone stale
  against earlier app changes are repaired.
2026-11-15 23:33:29 +07:00
zarzet fe28bd76b3 feat(windows): add taskbar thumbnail playback controls 2026-11-05 22:47:33 +07:00
zarzet 20e5b550d9 chore: neutralize UI terminology and clarify code comments 2026-11-04 22:53:56 +07:00
zarzet d8796a5203 fix(windows): build without the ATL component and find Inno Setup (#764)
flutter_local_notifications_windows and flutter_secure_storage_windows use
only CW2A and CA2W from ATL, an optional Visual Studio component. When
CMake cannot find atlbase.h, those two plugins get a minimal stand-in with
the same thread code page default and null handling; the real ATL is used
whenever it is installed.

package_windows.ps1 looks for ISCC.exe in PATH, the per-user install and
both Program Files folders, and explains how to install Inno Setup instead
of installing it with Chocolatey.

Contributed by Rohit in #764, reworked so the shim never replaces an
installed ATL and without the audioplayers coroutine flags.
2026-11-04 16:11:23 +07:00
zarzet 6e964bb2d3 feat(player): open audio files and folders directly 2026-11-04 01:35:52 +07:00
zarzet 6eb4741336 fix(windows): omit unused FFmpegKit native plugin 2026-11-03 11:57:06 +07:00
zarzet a73f63772d chore(deps): update Flutter, native and Rust dependencies 2026-10-30 01:29:33 +07:00
zarzet 1f12076765 feat(search): recognize songs playing nearby
A microphone button in the empty search field listens to the room and
names the song, on phones and desktop.

- The audio fingerprint and the Shazam request run in Rust behind a new
  recognize_song data job, so every platform shares one path.
- Listening sends the audio so far at 4, 8 and 12 seconds and stops at
  the first match; quiet or short clips are reported instead of sent.
- A match can be played from the library (by ISRC, then title and
  artist), searched in Mornye, or opened in Shazam. Recent matches are
  kept in a local history.
- Android asks for the microphone only when listening starts; iOS and
  macOS gain the microphone usage description and entitlement. The Linux
  package recommends pulseaudio-utils for capture.
2026-10-26 01:33:56 +07:00
zarzet e0ab3c10ca merge: integrate reviewed Windows and extension fixes 2026-10-25 23:19:03 +07:00
zarzet c90ec6478a fix(windows): exclude x64 exception runtime from ARM64 bundles 2026-10-25 22:52:19 +07:00
zarzet 32fc942a04 feat(link): add the phone client for desktop discovery and pairing
Phones find Mornye on a computer over mDNS (bonsoir, _mornye._tcp),
pair with its 6-digit PIN and keep a live session with the chosen
desktop.

- Pinned HTTPS: first contact records the presented certificate and
  checks it against info and the mDNS fingerprint; later requests and
  the WebSocket accept only that SHA-256.
- Pairing posts the PIN proof, maps bad_proof, pairing_closed and 429
  to clear errors, saves a Subsonic API-key network connection, adds it
  to Library and scans it. Re-pairing replaces the key in place.
- LinkClientSession: Bearer JSON get/post with timeouts and
  LinkException mapping, WebSocket hello/welcome, backoff from 1 s
  doubling to 30 s, pause in the background, reconnect when discovery
  sees the desktop again, address updates when it moves.
- LinkClientController publishes the active session through
  linkActiveClientProvider and rescans on catalog.changed.
- Settings entry "Mornye on your computer" on Android and iOS with
  nearby and paired computers, PIN and manual address dialogs, forget,
  and local network permission, Wi-Fi and certificate warnings.
- iOS NSBonjourServices and the Android multicast permission.
2026-10-25 02:37:07 +07:00
Illyasvelovna d14a2d7272 fix(windows): bundle the Visual C++ runtime next to mornye.exe
mornye.exe and mornye_desktop.dll import VCRUNTIME140.dll,
VCRUNTIME140_1.dll and MSVCP140.dll, but neither the installer nor the
portable zip ships them, so the app does not start on PCs without the
Visual C++ Redistributable. Install them app-local with CMake's
InstallRequiredSystemLibraries, and make check_windows_bundle.ps1
require them so CI catches a regression.
2026-10-24 05:21:20 -06:00
zarzet 6ab91b4599 feat(desktop): add fullscreen and borderless window modes 2026-10-23 03:53:18 +07:00
zarzet 0beadb7c31 fix(windows): use the MSVC coroutine deprecation macro's real name
MSVC reads _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS, with a trailing S, so the ARM64 build still stopped on permission_handler_windows.
2026-10-23 02:23:40 +07:00
zarzet d8903fb212 fix(windows): install the libmpv license and build on MSVC 14.5x
Flutter adds the vendored libmpv plugin through
windows/flutter/ephemeral/.plugin_symlinks, so its relative path to
assets/licenses/lgpl-3.0.txt pointed inside the ephemeral folder and the
CMake install step failed. Resolve the license from the app's windows/
folder instead.

permission_handler_windows still includes <experimental/coroutine>,
which the MSVC 14.51 toolset on the Windows ARM64 runner rejects. Silence
that deprecation for the plugin target.
2026-10-23 01:55:06 +07:00
zarzet 8f553c7aa3 feat(windows): prepare native ARM64 builds and packages
Add architecture-specific CI jobs, native playback dependencies and bundle validation. Native Windows ARM64 compilation and runtime testing are still pending.
2026-10-22 23:10:34 +07:00
zarzet 7bbdf03e9a feat(desktop): open the mini player on Windows and Linux
The Windows and Linux runners now answer the window channel. They turn
the window into a frameless 360x140 panel that stays above other
windows, open it where it last sat (first at the top right of the work
area), move it when the panel is dragged, and restore the frame, size,
place and maximized state when it closes. On Wayland the compositor
decides the position and stacking, so there it only shrinks.

The mini player drag area now moves a framed window too, and the
shortcut is Ctrl+Shift+M on Windows and Linux, since Ctrl+Alt is AltGr
on many keyboard layouts. macOS keeps Opt+Cmd+M.
2026-10-22 19:27:34 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet daaafbc72d fix(desktop): register mornye:// from portable and AppImage copies
Only the Windows installer and the deb registered the scheme, so after
extension verification the browser could not return to a portable zip
or AppImage copy and the link had to be pasted. On launch the runners
now point the per-user handler at the running copy when it does not
already start it (HKCU\Software\Classes\mornye on Windows, a GIO
x-scheme-handler default on Linux, using $APPIMAGE for AppImages).
2026-10-21 15:11:12 +07:00
zarzet f6df8502fc feat(release): publish desktop builds in mornyeapp/Mornye-Desktop
The release workflow now ships phone builds in Mornye and desktop
packages in Mornye-Desktop, each with its own notes and SHA256SUMS.txt.
Desktop releases stay drafts until the DESKTOP_RELEASES_PUBLIC
repository variable is 'true'.

Desktop update checks read the new repository, and a release list
cached from the main repository is not reused. The Windows installer
links its updates page there too.
2026-10-21 11:34:43 +07:00
zarzet 3c7edf6f24 chore(branding): point links and packaging at mornyeapp/Mornye
The repository moved to mornyeapp/Mornye, so the GitHub links in the
app, README, contributing guide, issue templates, changelog config,
AltStore source and Linux and Windows packaging now use it. The remote
config endpoint keeps its old server name.
2026-10-21 11:34:39 +07:00
zarzet 382e3856e3 feat(desktop): add dropped music folders to the Library
Dropping music files or folders onto the window adds them as Library folders through the existing add-folder and scan path; a dropped file adds the folder that holds it. Uses desktop_drop 0.8.4. Tests cover the folder selection, the hover play button and the source-sorted table.
2026-10-20 17:38:54 +07:00
zarzet bcb1ee8b90 feat(desktop): play through media_kit with MPRIS and SMTC sessions
Windows and Linux now create a libmpv deck through media_kit; macOS,
Android and iOS keep audioplayers. Without libmpv the runtime falls back
to audioplayers.

- The equalizer becomes one libavfilter graph behind mpv's lavfi filter
  (input gain, peaking bands, balance, compressor, -0.5 dBFS limiter)
  after a planar float conversion. Changes set the af property again.
  Filters a libmpv build lacks are probed once and left out; the input
  gain then moves to mpv's volume. Filter failures are reported per player.
- Deck volume is scaled by the in-app output volume on mpv's cubic curve,
  position updates run on a timer, DSD sources throw when libmpv cannot
  open them, and exclusive output has a hook for a later setting.
- The in-app output volume persists across launches on every desktop OS.
- Previews go through the runtime's preview deck, so desktop previews
  follow the in-app volume.
- Linux publishes MPRIS over D-Bus and Windows uses SMTC through
  smtc_windows, both driven by the audio handler.
- The Linux CI job installs libmpv-dev.
2026-10-20 16:55:01 +07:00
zarzet 490e529203 feat(desktop): wire deep links, single instance, keep-awake, Discord, watcher and crash logs
- mornye:// URLs arrive through app_links and go to the backend callback
  inbox (queueExtensionCallbackUrl); extension auth opens the system
  browser on desktop.
- Single instance: a named mutex plus app_links WM_COPYDATA forwarding on
  Windows (with the installer's AppUserModelID), a unique GApplication
  forwarding its command line on Linux; macOS handles reopen itself.
- The download queue holds a sleep inhibitor from start until it stops.
- Discord Rich Presence runs on desktop through a channel adapter over the
  backend IPC methods, without an account link.
- Library folder changes trigger a debounced incremental source scan.
- Desktop rotating log files, a session marker that turns an unclean exit
  into the existing crash report, and runtime errors recorded for it.
2026-10-20 16:14:40 +07:00
zarzet dbb59e7ae5 build(desktop): bundle the staged ffmpeg and ffprobe in desktop apps
An Xcode "Embed FFmpeg" phase copies build/ffmpeg/macos-universal (or
the host architecture) into Contents/Resources/ffmpeg and signs the
tools; MORNYE_REQUIRE_FFMPEG=1 turns a missing stage into an error.
Linux installs them into lib/ffmpeg and Windows into ffmpeg\, warning
when nothing is staged. A macOS integration test converts and probes
with the bundled tools.
2026-10-20 16:13:08 +07:00
zarzet 767edb376a build(packaging): add dmg, AppImage, deb and Inno Setup packaging
- scripts/package_macos_dmg.sh: ad hoc signs the release app inside out
  (keeping its entitlements), builds a compressed dmg with an Applications
  symlink, then mounts it read-only and checks the signature and the
  universal slices.
- scripts/package_linux.sh: AppImage (pinned appimagetool 1.9.1 and type2
  runtime, checked by SHA-256) and deb (dpkg-shlibdeps Depends with a fixed
  fallback) from the Flutter bundle, installed under usr/lib/mornye.
- linux/packaging: desktop entry registering x-scheme-handler/mornye,
  AppStream metainfo and 128/256 px icons.
- windows/installer/mornye.iss and scripts/package_windows.ps1: per-user
  Inno Setup installer in %LOCALAPPDATA%\Programs\Mornye with Start Menu
  and optional desktop shortcuts (AppUserModelID com.zarz.mornye), the
  HKCU mornye:// protocol, closing a running app on upgrade and a
  /RELAUNCH=1 switch for silent updates, plus a portable zip.
2026-10-20 15:07:31 +07:00
zarzet 5d369a2628 build(desktop): install the Rust library in the Linux and Windows bundles
Linux installs libmornye_desktop.so into the bundle's lib/ directory and
Windows installs mornye_desktop.dll next to mornye.exe. Both fail at
configure time with a clear message when the library was not built.
Add scripts/build_rust_backend_windows.ps1 as the Windows counterpart of
`build_rust_backend.sh desktop`, replacing the commented commands.
2026-10-20 14:27:17 +07:00
zarzet f10c9d88b0 feat(desktop): set Mornye identity, icons, window size and entitlements
Name the app Mornye with the com.zarz.mornye identifier on all three
runners and generate macOS and Windows icons from the brand badge; the
Linux bundle installs the badge PNG as the window icon. Open at
1280 x 800 with a minimum of 800 x 600. Register the mornye:// scheme on
macOS and run outside the App Sandbox.
2026-10-20 13:33:45 +07:00
zarzet f70bc95595 feat(desktop): add generated macOS, Windows and Linux runners
Output of flutter create --platforms=macos,linux,windows --org com.zarz
with Flutter 3.47.7. Identity, window and entitlement changes follow.
2026-10-20 13:25:29 +07:00