hensm / fx_cast

Chromecast Web Sender SDK implementation for Firefox
https://hensm.github.io/fx_cast/
MIT License
1.89k stars 64 forks source link

Won't install on Asahi Linux #284

Open pablo03v opened 1 year ago

pablo03v commented 1 year ago

OS version: Fedora Linux Asahi Remix 39 (Thirty Nine) Browser version: 119.0 (64-bit) Extension version: 0.3.1 Bridge version: 0.3.0 rpm

Description Opens the Software program but then won't install it.

Steps to reproduce

  1. Install Asahi Fedora 39 Gnome
  2. Download the rpm version for Fedora
  3. Click it
  4. Opens the software program and errors

Expected behaviour Describe the expected behaviour here.

Logs Could not depsolve transaction; 1 problem detected: Problem: conflicting requests

brad commented 12 months ago

This is because the architecture is incorrect. I managed to build the correct architecture in Asahi after making these changes

diff --git a/bridge/bin/build.js b/bridge/bin/build.js
index 88dd9ed..96784e5 100644
--- a/bridge/bin/build.js
+++ b/bridge/bin/build.js
@@ -43,7 +43,7 @@ const argv = await yargs()
 const supportedTargets = {
     win32: ["x86", "x64"],
     darwin: ["x64", "arm64"],
-    linux: ["x64"]
+    linux: ["x64", "arm64"]
 };
 if (!supportedTargets[process.platform]?.includes(argv.arch)) {
     console.error(
@@ -498,7 +498,7 @@ function packageLinuxRpm(
         mustache.render(fs.readFileSync(specPath).toString(), view)
     );

-    const rpmArchMap = { x86: "i386", x64: "x86_64" };
+    const rpmArchMap = { x86: "i386", x64: "x86_64", arm64: "aarch64" };

     spawnSync(
         `rpmbuild -bb ${specOutputPath} \

The package installs, but I'm still troubleshooting the extension's connection to the bridge

EDIT: The bridge connection works, but it doesn't see my chromecast with Google TV 😞 image

pablo03v commented 12 months ago

thanks for taking a look tho!

fx-chun commented 9 months ago

@brad This patch works for me! I'm able to see my display device as well. Maybe something was misconfigured with your mDNS resolution?

I haven't gotten anything actually streaming yet however; I believe the third-party casting dongle I'm testing with doesn't support anything other than the default media playback app judging from the LAUNCH_ERRORs I'm seeing in the browser console (and so YouTube doesn't cast). I'll probably try with an HTML5 video element later today.