From 36fe805d5cacf079035c8e206f6e0e522897e2a6 Mon Sep 17 00:00:00 2001 From: Cezar Lungu Date: Thu, 27 Jun 2024 18:42:42 +0200 Subject: [PATCH] Disable AppImage update check of Official Deezer channel The Electron AppImage that we build attempts to check for updates using the Official Deezer Channel, which only supports Windows and possibly MacOS. This patch disables the update check for Linux systems, however in the future we could revert this and implement our own update logic to support our own self-updating AppImages. --- Makefile | 1 + patches/disable-update-check-official-channel.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 patches/disable-update-check-official-channel.patch diff --git a/Makefile b/Makefile index c477a22..375727c 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,7 @@ prepare: clean install_build_deps @echo "Remove kernel version from User-Agent (https://github.com/aunetx/deezer-linux/pull/9)" @echo "Avoid to set the text/html mime type (https://github.com/aunetx/deezer-linux/issues/13)" @echo "Add a better management of MPRIS (https://github.com/aunetx/deezer-linux/pull/61)" + @echo "Disable AppImage update check of Official Deezer channel (https://github.com/aunetx/deezer-linux/pull/65)" $(foreach p, $(wildcard ./patches/*), patch -p1 -dapp < $(p);) @echo "Append `package-append.json` to the `package.json` of the app" diff --git a/patches/disable-update-check-official-channel.patch b/patches/disable-update-check-official-channel.patch new file mode 100644 index 0000000..4de4a8b --- /dev/null +++ b/patches/disable-update-check-official-channel.patch @@ -0,0 +1,13 @@ +diff --git a/build/main.js b/build/main.js +index 764aa06..8a8a370 100644 +--- a/build/main.js ++++ b/build/main.js +@@ -2362,7 +2362,7 @@ + } + init() { + this.arch && +- ((isPlatform(PLATFORM.LINUX) && !process.env.APPIMAGE) || ++ (isPlatform(PLATFORM.LINUX) || + isWindowsStore() || + "yes" === process.env.DZ_DISABLE_UPDATE || + ((external_electron_updater_namespaceObject.autoUpdater.autoDownload =