From 51e9a2608f0f8acd43e2369d1c46fe7ce7485f3a Mon Sep 17 00:00:00 2001 From: josselinonduty Date: Sat, 12 Apr 2025 00:55:20 +0900 Subject: [PATCH 1/3] Feature Request: Remove the minimum Window size requirements. Fixes #105 --- Makefile | 1 + patches/11-improve-responsiveness.patch | 55 +++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 patches/11-improve-responsiveness.patch diff --git a/Makefile b/Makefile index b37cefc..365a83e 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ prepare: clean install_build_deps @echo "Prettier the sources to patch successfully" @node_modules/prettier/bin-prettier.js --write "$(APP_DIR)/build/*.js" + @node_modules/prettier/bin-prettier.js --write "$(APP_DIR)/build/*.html" @echo "Apply patches from ./patches:" @echo "01 - Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)" diff --git a/patches/11-improve-responsiveness.patch b/patches/11-improve-responsiveness.patch new file mode 100644 index 0000000..04d5fec --- /dev/null +++ b/patches/11-improve-responsiveness.patch @@ -0,0 +1,55 @@ +From f95ca5f06f78592a6167379d9bf5a13191910838 Mon Sep 17 00:00:00 2001 +From: josselinonduty +Date: Sat, 12 Apr 2025 00:53:24 +0900 +Subject: [PATCH] feat: improve responsiveness for small devices + +--- + build/index.html | 21 ++++++++++++++++++++- + build/main.js | 4 ++-- + 2 files changed, 22 insertions(+), 3 deletions(-) + +diff --git a/build/index.html b/build/index.html +index 357ca43..0e14653 100644 +--- a/build/index.html ++++ b/build/index.html +@@ -1 +1,20 @@ +-Deezer
+\ No newline at end of file ++ ++ ++ ++ ++ Deezer ++ ++ ++ ++ ++
++ ++ +diff --git a/build/main.js b/build/main.js +index e3f2b78..d9e3185 100644 +--- a/build/main.js ++++ b/build/main.js +@@ -3206,8 +3206,8 @@ + }, + windowOptions = { + title: "Deezer Desktop", +- minWidth: 990, +- minHeight: 600, ++ minWidth: 450, ++ minHeight: 450, + icon: external_electron_namespaceObject.nativeImage.createFromPath( + getAppIcon(external_electron_namespaceObject.app) + ), +-- +2.43.0 + From 836419dd023d6179cb56865a7fa4971c6fa0bddd Mon Sep 17 00:00:00 2001 From: josselinonduty Date: Sat, 12 Apr 2025 01:00:23 +0900 Subject: [PATCH 2/3] chore(Makefile): add patch to patch list in makefile --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 365a83e..b871f65 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ prepare: clean install_build_deps @echo "08 - Add option to disable Discord Rich Presence (https://github.com/aunetx/deezer-linux/pull/95)" @echo "09 - Add environment variable to change log level (https://github.com/aunetx/deezer-linux/pull/95)" @echo "10 - Add track duration and url, various fixes (https://github.com/aunetx/deezer-linux/pull/95)" + @echo "11 - Improve responsiveness on small devices (https://github.com/aunetx/deezer-linux/pull/107)" $(foreach p, $(wildcard ./patches/*), patch -p 1 -d $(APP_DIR) < $(p);) @echo "Append `package-append.json` to the `package.json` of the app" From 74e8ff28b8728a1ae2deb966e180c7ebf8993836 Mon Sep 17 00:00:00 2001 From: josselinonduty Date: Sat, 12 Apr 2025 01:10:28 +0900 Subject: [PATCH 3/3] fix: rewrite patch to ensure hunk gets applied --- patches/11-improve-responsiveness.patch | 35 ++++++++++--------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/patches/11-improve-responsiveness.patch b/patches/11-improve-responsiveness.patch index 04d5fec..ab38e7a 100644 --- a/patches/11-improve-responsiveness.patch +++ b/patches/11-improve-responsiveness.patch @@ -1,26 +1,21 @@ -From f95ca5f06f78592a6167379d9bf5a13191910838 Mon Sep 17 00:00:00 2001 +From 6cbd417ecc4fbd278e24bb202671b13c93064d95 Mon Sep 17 00:00:00 2001 From: josselinonduty -Date: Sat, 12 Apr 2025 00:53:24 +0900 -Subject: [PATCH] feat: improve responsiveness for small devices +Date: Sat, 12 Apr 2025 01:08:14 +0900 +Subject: [PATCH] feat: improve responsiveness on small devices --- - build/index.html | 21 ++++++++++++++++++++- - build/main.js | 4 ++-- - 2 files changed, 22 insertions(+), 3 deletions(-) + build/index.html | 9 +++++++++ + build/main.js | 4 ++-- + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build/index.html b/build/index.html -index 357ca43..0e14653 100644 +index aa761a2..0e14653 100644 --- a/build/index.html +++ b/build/index.html -@@ -1 +1,20 @@ --Deezer
-\ No newline at end of file -+ -+ -+ -+ -+ Deezer -+ +@@ -4,6 +4,15 @@ + + Deezer + + -+ -+ -+
-+ -+ + + +
diff --git a/build/main.js b/build/main.js index e3f2b78..d9e3185 100644 --- a/build/main.js