mirror of
https://github.com/aunetx/deezer-linux.git
synced 2025-07-24 22:24:45 +02:00
feat(patch): remove os information to preserve privacy
This commit is contained in:
parent
02f645c28f
commit
95aa2e7fb8
1
Makefile
1
Makefile
@ -38,6 +38,7 @@ prepare: clean install_build_deps
|
|||||||
@echo "- Avoid to set the text/html mime type (https://github.com/aunetx/deezer-linux/issues/13)"
|
@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 "- Add a better management of MPRIS (https://github.com/aunetx/deezer-linux/pull/61)"
|
||||||
@echo "- Disable auto updater (https://github.com/aunetx/deezer-linux/pull/95)"
|
@echo "- Disable auto updater (https://github.com/aunetx/deezer-linux/pull/95)"
|
||||||
|
@echo "- Remove OS information (https://github.com/aunetx/deezer-linux/pull/95)"
|
||||||
$(foreach p, $(wildcard ./patches/*), patch -p1 -dapp < $(p);)
|
$(foreach p, $(wildcard ./patches/*), patch -p1 -dapp < $(p);)
|
||||||
|
|
||||||
@echo "Append `package-append.json` to the `package.json` of the app"
|
@echo "Append `package-append.json` to the `package.json` of the app"
|
||||||
|
87
patches/remove-os-information.patch
Normal file
87
patches/remove-os-information.patch
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
From 83374279bba745cf9b4b4ab958b35738f97d12c7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: josselinonduty <contact@josselinonduty.fr>
|
||||||
|
Date: Mon, 20 Jan 2025 19:19:51 +0100
|
||||||
|
Subject: [PATCH] fix: hide os information
|
||||||
|
|
||||||
|
---
|
||||||
|
build/main.js | 7 ++++++-
|
||||||
|
build/preload.js | 7 ++++++-
|
||||||
|
build/renderer.js | 7 ++++++-
|
||||||
|
build/titlebar.js | 7 ++++++-
|
||||||
|
4 files changed, 24 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build/main.js b/build/main.js
|
||||||
|
index 10a80fa..e371d01 100644
|
||||||
|
--- a/build/main.js
|
||||||
|
+++ b/build/main.js
|
||||||
|
@@ -5,7 +5,12 @@
|
||||||
|
module.exports = require("macos-version");
|
||||||
|
},
|
||||||
|
857: (module) => {
|
||||||
|
- module.exports = require("os");
|
||||||
|
+ var __module_os = require("os");
|
||||||
|
+ __module_os.release = () => "10.0.26100.2894";
|
||||||
|
+ __module_os.version = () => ""
|
||||||
|
+ __module_os.platform = () => "win32";
|
||||||
|
+ __module_os.type = () => "Windows_NT";
|
||||||
|
+ module.exports = __module_os;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
__webpack_module_cache__ = {};
|
||||||
|
diff --git a/build/preload.js b/build/preload.js
|
||||||
|
index 9716411..f0fa2ab 100644
|
||||||
|
--- a/build/preload.js
|
||||||
|
+++ b/build/preload.js
|
||||||
|
@@ -5,7 +5,12 @@
|
||||||
|
module.exports = require("macos-version");
|
||||||
|
},
|
||||||
|
857: (module) => {
|
||||||
|
- module.exports = require("os");
|
||||||
|
+ var __module_os = require("os");
|
||||||
|
+ __module_os.release = () => "10.0.26100.2894";
|
||||||
|
+ __module_os.version = () => ""
|
||||||
|
+ __module_os.platform = () => "win32";
|
||||||
|
+ __module_os.type = () => "Windows_NT";
|
||||||
|
+ module.exports = __module_os;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
__webpack_module_cache__ = {};
|
||||||
|
diff --git a/build/renderer.js b/build/renderer.js
|
||||||
|
index 7241bcb..628bbaf 100644
|
||||||
|
--- a/build/renderer.js
|
||||||
|
+++ b/build/renderer.js
|
||||||
|
@@ -5,7 +5,12 @@
|
||||||
|
module.exports = require("macos-version");
|
||||||
|
},
|
||||||
|
857: (module) => {
|
||||||
|
- module.exports = require("os");
|
||||||
|
+ var __module_os = require("os");
|
||||||
|
+ __module_os.release = () => "10.0.26100.2894";
|
||||||
|
+ __module_os.version = () => ""
|
||||||
|
+ __module_os.platform = () => "win32";
|
||||||
|
+ __module_os.type = () => "Windows_NT";
|
||||||
|
+ module.exports = __module_os;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
__webpack_module_cache__ = {};
|
||||||
|
diff --git a/build/titlebar.js b/build/titlebar.js
|
||||||
|
index 65520fb..12ad58c 100644
|
||||||
|
--- a/build/titlebar.js
|
||||||
|
+++ b/build/titlebar.js
|
||||||
|
@@ -5,7 +5,12 @@
|
||||||
|
module.exports = require("macos-version");
|
||||||
|
},
|
||||||
|
857: (module) => {
|
||||||
|
- module.exports = require("os");
|
||||||
|
+ var __module_os = require("os");
|
||||||
|
+ __module_os.release = () => "10.0.26100.2894";
|
||||||
|
+ __module_os.version = () => ""
|
||||||
|
+ __module_os.platform = () => "win32";
|
||||||
|
+ __module_os.type = () => "Windows_NT";
|
||||||
|
+ module.exports = __module_os;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
__webpack_module_cache__ = {};
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user