deezer-linux/README.md

105 lines
4.0 KiB
Markdown
Raw Permalink Normal View History

2021-10-13 23:12:59 +02:00
# Deezer for linux
2023-09-25 12:42:41 +02:00
**NOTICE:** existing flatpak users NEED to migrate the the flathub repository as soon as possible, as I deleted the flatpak repository from here (it was more than 2Gb in size). In order to do so (normally without losing any data), simply:
2023-06-29 16:36:07 +02:00
```sh
flatpak uninstall dev.aunetx.deezer
flatpak remote-delete deezer-linux
flatpak install flathub dev.aunetx.deezer
```
---
2021-11-15 19:25:56 +01:00
[![Build](https://github.com/aunetx/deezer-linux/actions/workflows/build.yml/badge.svg)](https://github.com/aunetx/deezer-linux/actions/workflows/build.yml)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/aunetx/deezer-linux)](https://github.com/aunetx/deezer-linux/releases/latest)
2023-05-23 17:41:09 +02:00
This repo is an UNOFFICIAL linux port of the official windows-only Deezer app. Being based on the native Windows app, it allows downloading your songs to listen to them offline!
2021-10-14 17:47:25 +02:00
It packages the app in a number of formats:
2021-10-13 23:12:59 +02:00
2023-06-29 16:31:03 +02:00
- Flatpak, [available on flathub](https://flathub.org/apps/dev.aunetx.deezer)
2021-10-13 23:12:59 +02:00
- Snap (not tested yet)
- AppImage (can't automatically login without desktop integration)
- `rpm` (Fedora, Red Hat, CentOS, openSUSE, ...)
- `deb` (Debian, Ubuntu, Pop!_OS, elementary OS, ...)
2021-11-15 19:25:56 +01:00
- `7z` to install anywhere else
2021-10-13 23:12:59 +02:00
It was done thanks to the hard work of [SibrenVasse](https://github.com/SibrenVasse), who [packaged the app for the AUR](https://github.com/SibrenVasse/deezer).
2021-11-15 19:25:56 +01:00
## Installation
2023-05-23 17:41:09 +02:00
You can find all of the packages on [the release page](https://github.com/aunetx/deezer-linux/releases/latest).
2021-11-15 19:25:56 +01:00
2023-09-25 12:42:41 +02:00
To install the flatpak version, you can simply go to https://flathub.org/apps/dev.aunetx.deezer (or use your favorite flatpak package manager). **Old users using this repo as a flatpak repository should migrate as soon as they can toward Flathub.**
2021-11-15 19:25:56 +01:00
2023-05-23 17:41:09 +02:00
Other packages can be installed from you package manager, either by clicking on them or from the command-line.
2021-11-15 19:25:56 +01:00
2023-05-23 17:41:09 +02:00
Please note that even though it is automatically generated, the snapcraft package has never been tested; Please tell me if there is any issue with it!
2021-11-15 19:25:56 +01:00
## From source
2021-10-13 23:12:59 +02:00
You will probably need to install some things in order to generate the packages from source:
- nodejs
- npm
- yarn
- 7z by installing `p7zip` and `p7zip-full`
- make
- wget
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
### AppImage
2021-10-13 23:12:59 +02:00
2023-05-23 17:41:09 +02:00
To build the AppImage image from source, use:
2021-10-13 23:12:59 +02:00
```sh
2021-11-15 19:37:29 +01:00
make install_deps
2021-10-13 23:12:59 +02:00
make build_appimage
```
And the image should be in the `artifacts/x64` folder.
2023-05-23 17:41:09 +02:00
Because of the way AppImage works, except if you use `appimaged`, you will not be able to login from the browser; then you are not redirected to the application.
To make it work, you must first open a instance of the app, and copy the link shown in `https://www.deezer.com/desktop/login/electron/callback`. In a terminal
(where the .AppImage file is), use:
2021-10-13 23:12:59 +02:00
```sh
deezer-desktop-*.AppImage deezer://autolog/...
```
And you should be automatically logged in.
2023-05-23 17:41:09 +02:00
**IMPORTANT:** If you want to open an issue about this, please do NOT share your own `deezer://autolog/...` link, as it would permit anybody to log into your account without the need for a password!
2022-11-01 11:47:43 +01:00
2022-12-19 13:09:13 +01:00
See [this issue](https://github.com/aunetx/deezer-linux/issues/29) for more informations about login in AppImage.
2021-11-15 19:25:56 +01:00
## rpm / deb / snap / 7z
2021-10-13 23:12:59 +02:00
2023-05-23 17:41:09 +02:00
To generate the `rpm`/`deb`/`snap`/`7z` packages, you can use:
2021-10-13 23:12:59 +02:00
```sh
2021-11-15 19:37:29 +01:00
# prepare the build
make install_deps
# and then
2023-09-25 12:42:41 +02:00
make build_deb_x64
2021-11-15 19:25:56 +01:00
# or
2023-09-25 12:42:41 +02:00
make build_rpm_x64
2021-10-13 23:12:59 +02:00
# or
2023-09-25 12:42:41 +02:00
make build_snap_x64
2021-11-15 19:25:56 +01:00
# or
2023-09-25 12:42:41 +02:00
make build_tar.xz_x64
2021-10-13 23:12:59 +02:00
```
2023-05-23 17:41:09 +02:00
Note that you don't need to use `make install_deps` everytime you start a build, but you need to call it at least once. Everything should be generated in `artifacts/x64`.
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
If you generate the 7z package, you can run it directly by extracting to a directory, and calling `./deezer-desktop` from there.
2021-10-13 23:12:59 +02:00
## **IMPORTANT NOTICE**
2023-05-23 17:41:09 +02:00
This work is UNOFFICIAL, and Deezer does not officially support Linux yet.
2021-10-13 23:12:59 +02:00
2023-09-25 12:42:41 +02:00
Installing/using this is consequently probably outside of the scope of the Deezer EULA, and I am not responsible for your usage of this.
2021-10-13 23:12:59 +02:00
2024-02-05 13:06:05 +01:00
I ***tried*** to talk to Deezer to ask them if I am authorized to upload this on Flathub, but when they answer, even if they say yes, this work is still unofficial.