mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
Dev tools support. Closes #86
This commit is contained in:
parent
3faca83173
commit
bde0ca039a
@ -139,6 +139,12 @@ Tray mode is disabled by default. It allows program to be minimized to tray inst
|
||||
|
||||
***
|
||||
|
||||
### Dev tools
|
||||
|
||||
Chromium developer/debug tools can be enabled by setting `DEV_TOOLS` option to `1`.
|
||||
|
||||
***
|
||||
|
||||
## Manual Build
|
||||
|
||||
### Prerequisites
|
||||
|
14
patches/0004-Dev-Tools-from-config.patch
Normal file
14
patches/0004-Dev-Tools-from-config.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/main/config.js b/main/config.js
|
||||
--- a/main/config.js
|
||||
+++ b/main/config.js
|
||||
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.applyCommonConfig = exports.config = void 0;
|
||||
const package_json_1 = __importDefault(require("../package.json"));
|
||||
+const devTools = process.env.DEV_TOOLS && process.env.DEV_TOOLS > 0;
|
||||
exports.config = {
|
||||
- enableDevTools: false,
|
||||
+ enableDevTools: devTools,
|
||||
enableWebSecurity: true,
|
||||
enableAutoUpdate: true,
|
||||
bypassCSP: false,
|
@ -1,3 +1,4 @@
|
||||
ELECTRON_CUSTOM_BIN=
|
||||
ELECTRON_ARGS="--no-sandbox"
|
||||
TRAY_ENABLED=0
|
||||
TRAY_ENABLED=0
|
||||
DEV_TOOLS=0
|
@ -23,5 +23,6 @@ fi
|
||||
ELECTRON_BIN=${ELECTRON_CUSTOM_BIN:-%electron_path%}
|
||||
|
||||
export TRAY_ENABLED=${TRAY_ENABLED:-0}
|
||||
export DEV_TOOLS=${DEV_TOOLS:-0}
|
||||
|
||||
exec "${ELECTRON_BIN}" "%asar_path%" $ELECTRON_ARGS $WAYLAND_FLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user