tidal-hifi icon indicating copy to clipboard operation
tidal-hifi copied to clipboard

Build for arm64 linux

Open JoshAtticus opened this issue 7 months ago • 14 comments

Would be nice to be able to run on arm64 linux without having to compile myself

JoshAtticus avatar Nov 19 '23 01:11 JoshAtticus

Any movement on this? Thanks!

Spl0itable avatar Jan 01 '24 23:01 Spl0itable

I am opening a new update inside electron by castlabs with a solution for Widevine on arm64 platforms like Fedora Asahi for Apple M series macbooks https://github.com/castlabs/electron-releases/issues/23#issuecomment-1874133501

andirsun avatar Jan 02 '24 15:01 andirsun

Hey,

Yeah still waiting for Castlab to introduce ARM support eventually. I mean, we can make an ARM build available if you want but it won't have widevine support I reckon.

I don't know if that's a problem since you're now building it yourself anyway. Let me know.

Mastermindzh avatar Jan 03 '24 10:01 Mastermindzh

Hey,

Yeah still waiting for Castlab to introduce ARM support eventually. I mean, we can make an ARM build available if you want but it won't have widevine support I reckon.

I don't know if that's a problem since you're now building it yourself anyway. Let me know.

I initially made my issue related to M1 Macs with Asahi Linux. Asahi uses https://github.com/AsahiLinux/widevine-installer for Widevine and it might be possible to implement that and maybe even make it work on Raspberry Pis

JoshAtticus avatar Jan 03 '24 11:01 JoshAtticus

@Mastermindzh We could uses the asahi linux widevine installer for arm64 builds. I can test it if you want.

andirsun avatar Jan 03 '24 14:01 andirsun

Sure, give it a whirl and let me know. I expect to work on a new version of Tidal Friday so we might be able to include this in the weekend :)

Mastermindzh avatar Jan 03 '24 14:01 Mastermindzh

Hey,

Yeah still waiting for Castlab to introduce ARM support eventually. I mean, we can make an ARM build available if you want but it won't have widevine support I reckon.

I don't know if that's a problem since you're now building it yourself anyway. Let me know.

Yes, I am using an ubuntu vm on m1 mac. I'd be happy to test without widevine support and see if there's any issues without the drm. Thanks!

Spl0itable avatar Jan 04 '24 09:01 Spl0itable

Well the app build properly but I am trying to add widevine support on Fedora for Macbooks. I have support for widevine on Firefox and Chromium browsers as you can see here Screenshot from 2024-01-04 22-54-15

The cdm is here Screenshot from 2024-01-04 23-00-32

But after trying to make electron read the Widevine from path as recomended by Fedora mantainers Screenshot from 2024-01-04 23-03-39

// * `widevinecdm.dll` on Windows.
try {
  app.commandLine.appendSwitch('widevine-cdm-path', '/usr/lib64/chromium-browser/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so')
  app.commandLine.appendSwitch('widevine-cdm-version', '4.10.2662.3')
  console.log(`Widevine CDM path: ${app.commandLine.getSwitchValue('widevine-cdm-path')}`)
} catch (error) {
  console.log(error)
}

Widevine is not being taken from proper directory. Screenshot from 2024-01-04 22-55-03

I feel I am close to fix it but dont know how.

andirsun avatar Jan 05 '24 04:01 andirsun

@andirsun how did this go? Were you able to get an arm64 build working?

Spl0itable avatar Jan 10 '24 04:01 Spl0itable

@Spl0itable Actually no, I was not able to make electron read local Widevine CDM, so I ended creating a PWA shorcut using Chromium. I think our best shot is to wait for castlabs to support arm64 officially. Screenshot from 2024-01-10 12-55-20

andirsun avatar Jan 10 '24 17:01 andirsun

@andirsun Ah no, sorry to hear that. Wish it had worked. Thanks for trying.

Spl0itable avatar Jan 14 '24 06:01 Spl0itable

Thanks for all the effort @andirsun. Let's hope the ARM support issue/ticket is prioritized relatively quickly :)

Mastermindzh avatar Jan 16 '24 08:01 Mastermindzh

so is this possible to use if I compile myself? or will i still be limited without widevine?

cenunix avatar Apr 07 '24 15:04 cenunix

@cenunix Yep you can compile the project by yourself but unless you are able to make electron read you widevine path to reproduce DRM protected content, the app will not play anything.

andirsun avatar Apr 07 '24 19:04 andirsun