Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable AppImage update check of Official Deezer channel #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 13 additions & 0 deletions patches/disable-update-check-official-channel.patch
Original file line number Diff line number Diff line change
@@ -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 =