feat(desktop): port v0.11.4-v0.15.2 from Tauri to Electron + Discord-parity audio (v0.16.0)
Chronological port of every Tauri release commit (v0.11.4 -> v0.15.2)
into the Electron rebuild, plus Discord-style audio handling that goes
beyond the Tauri original.
Highlights:
- All 17 Tauri release commits ported (audio fixes, custom notification
sound, Discord-style chat UX, profile banner, changelog page,
Discord-parity call UX, screen-share echo + re-watch UX, audio-loop
fix).
- Native napi-rs audio-loopback addon with WASAPI process-loopback:
* EXCLUDE_TARGET_PROCESS_TREE for full-screen shares -> peers
never hear themselves echoed back through the capture.
* INCLUDE_TARGET_PROCESS_TREE for window shares -> only the
picked window's audio is captured, not the whole OS mixer
(Discord parity).
* HWND -> PID resolution via Win32 GetWindowThreadProcessId.
- Discord-style screen-source picker (thumbnail grid, screens vs
apps tabs, live-refreshing thumbnails).
- Hash routing fix for packaged builds (file:// can't resolve
BrowserRouter paths).
- Tauri sources removed (apps/desktop/src-tauri).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
-- Profile-Banner: optional 3:1 hero image shown above the avatar in the
|
||||
-- UserProfilePopover and on the settings preview. Mirrors the
|
||||
-- profile-avatars bucket layout (separate bucket, owner-folder RLS,
|
||||
-- public read) so peers can fetch banners without an auth roundtrip.
|
||||
--
|
||||
-- Layout: <user_id>/<filename>.webp (target: 1500x500 WebP, <=8MB original)
|
||||
|
||||
alter table public.profiles
|
||||
add column if not exists banner_url text;
|
||||
|
||||
insert into storage.buckets (id, name, public)
|
||||
values ('profile-banners', 'profile-banners', true)
|
||||
on conflict (id) do nothing;
|
||||
|
||||
drop policy if exists profile_banners_select on storage.objects;
|
||||
create policy profile_banners_select
|
||||
on storage.objects
|
||||
for select
|
||||
to authenticated, anon
|
||||
using (bucket_id = 'profile-banners');
|
||||
|
||||
drop policy if exists profile_banners_insert_own on storage.objects;
|
||||
create policy profile_banners_insert_own
|
||||
on storage.objects
|
||||
for insert
|
||||
to authenticated
|
||||
with check (
|
||||
bucket_id = 'profile-banners'
|
||||
and (storage.foldername(name))[1] = auth.uid()::text
|
||||
);
|
||||
|
||||
drop policy if exists profile_banners_update_own on storage.objects;
|
||||
create policy profile_banners_update_own
|
||||
on storage.objects
|
||||
for update
|
||||
to authenticated
|
||||
using (
|
||||
bucket_id = 'profile-banners'
|
||||
and (storage.foldername(name))[1] = auth.uid()::text
|
||||
)
|
||||
with check (
|
||||
bucket_id = 'profile-banners'
|
||||
and (storage.foldername(name))[1] = auth.uid()::text
|
||||
);
|
||||
|
||||
drop policy if exists profile_banners_delete_own on storage.objects;
|
||||
create policy profile_banners_delete_own
|
||||
on storage.objects
|
||||
for delete
|
||||
to authenticated
|
||||
using (
|
||||
bucket_id = 'profile-banners'
|
||||
and (storage.foldername(name))[1] = auth.uid()::text
|
||||
);
|
||||
Reference in New Issue
Block a user