deezer-linux/README.md

115 lines
3.9 KiB
Markdown
Raw Normal View History

2021-10-13 23:12:59 +02:00
# Deezer for linux
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)
2021-10-14 17:47:25 +02:00
This repo is an UNOFFICIAL linux port of the official windows-only Deezer app. Being based on the windows app, it allows downloading your songs to listen to them offline!
It packages the app in a number of formats:
2021-10-13 23:12:59 +02:00
- Flatpak
- 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
You can find all of the installation medium in [the release pages](https://github.com/aunetx/deezer-linux/releases/latest).
[The flatpak file,`deezer.flatpakref`](https://github.com/aunetx/deezer-linux/releases/download/v5.30.100-1/deezer.flatpakref), can be installed directly by clicking on it; your package manager's GUI should prompt you to install it.
Other packages can be installed from you package manager, either by clicking on them or from command-line.
Please note that eventhough it is automatically generated, the snapcraft package has never been tested; please tell me if there is any issue with it!
## From source
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
You will probably need to install some things in order to generate the packages from source: `nodejs` and `npm`, and `yarn` at least; and `flatpak-builder` to build the flatpak version.
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
### Flatpak
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
To build it and install it:
2021-10-13 23:12:59 +02:00
```sh
make install_flatpak
2021-11-15 19:25:56 +01:00
```
And when it is installed, you can run it with `flatpak run dev.aunetx.deezer`, or from the desktop icon.
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
To just build it, but do nothing with it (testing):
```sh
2021-10-13 23:12:59 +02:00
make build_flatpak
2021-11-15 19:25:56 +01:00
```
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
To build it and install it in the local repo (which you can import later):
```sh
2021-10-13 23:12:59 +02:00
make export_flatpak
```
2021-11-15 19:25:56 +01:00
To build it and create a bundle, which is then installable offline:
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
```sh
2022-05-01 16:23:47 +02:00
make bundle_flatpak
2021-11-15 19:25:56 +01:00
```
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
Please not that in order to export the built flatpak image to your local repo or create a bundle, you will need to change `$(GPG_KEY_ID)` in the `Makefile` to use your gpg key.
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
2021-11-15 19:25:56 +01:00
To build the AppImage image from source, call:
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.
Because of the way AppImage work, excepted if you use `appimaged`, you will not be able to login from the browser: the you are not redirected to the application.
To make it work, you must open a first 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), call:
```sh
deezer-desktop-*.AppImage deezer://autolog/...
```
And you should be automatically logged in.
2021-11-15 19:25:56 +01:00
## rpm / deb / snap / 7z
2021-10-13 23:12:59 +02:00
2021-11-15 19:25:56 +01:00
To generate the `rpm`/`deb`/`snap`/`7z` packages, you can call:
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
2021-11-15 19:25:56 +01:00
make build_deb
# or
2021-10-13 23:12:59 +02:00
make build_rpm
# or
2021-11-15 19:25:56 +01:00
make build_snap
# or
make build_7z
2021-10-13 23:12:59 +02:00
```
2021-11-15 19:37:29 +01:00
Note that you don't need to call `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**
This work is UNOFFICIAL, and Deezer does not officially support linux yet.
Installing/using this is consequently outside of the scope of the Deezer EULA, and I am not responsible for your usage of this.
I will try to talk to Deezer to ask them if I can upload this on Flathub, but even if they say yes (which is nearly impossible), this work is still unofficial.