homebridge-melcloud-control 4.5.6-beta.4 → 4.5.6-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -22,6 +22,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
 
23
23
  - Do not use Homebridge UI > v5.5.0 because of break config.json
24
24
 
25
+ # [4.5.6] - (22.12.2025)
26
+
27
+ ## Changes
28
+
29
+ - fix install chrome browser in docker image
30
+ - cleanup
31
+
25
32
  # [4.5.5] - (21.12.2025)
26
33
 
27
34
  ## Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.5.6-beta.4",
4
+ "version": "4.5.6-beta.6",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/functions.js CHANGED
@@ -113,7 +113,8 @@ class Functions extends EventEmitter {
113
113
  await execPromise('opkg install chromium nspr nss libx11 libxcomposite libxdamage libxrandr atk libcups libdrm libgbm alsa-lib');
114
114
  process.env.LD_LIBRARY_PATH = `/opt/lib:${process.env.LD_LIBRARY_PATH || ''}`;
115
115
  } catch (error) {
116
- if (this.logError) this.emit('error', `Install package for Qnap error: ${error}`);
116
+ if (this.logDebug) this.emit('debug', `Install package for Qnap error: ${error}`);
117
+ return { path: null, arch, system: 'Qnap' };
117
118
  }
118
119
 
119
120
  for (const path of qnapCandidates) {
@@ -143,28 +144,14 @@ class Functions extends EventEmitter {
143
144
  return { path: null, arch, system: 'Linux ARM' };
144
145
  }
145
146
 
146
- /* ===================== Linux x64 ===================== */
147
+ // Docker install Chrome
147
148
  if (isDocker) {
148
149
  try {
149
- await execPromise(`
150
- apt update -y &&
151
- apt install -y wget gnupg ca-certificates &&
152
- mkdir -p /etc/apt/keyrings &&
153
-
154
- wget -qO- https://dl.google.com/linux/linux_signing_key.pub \
155
- | gpg --dearmor \
156
- | tee /etc/apt/keyrings/google-chrome.gpg > /dev/null &&
157
-
158
- chmod 644 /etc/apt/keyrings/google-chrome.gpg &&
159
-
160
- echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] https://dl.google.com/linux/chrome/deb/ stable main" \
161
- > /etc/apt/sources.list.d/google-chrome.list &&
162
-
163
- apt update -y &&
164
- apt install -y google-chrome-stable
165
- `);
150
+ await execPromise('apt-get update -y');
151
+ await execPromise('wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb');
152
+ await execPromise('apt-get install -y ./google-chrome-stable_current_amd64.deb');
166
153
  } catch (error) {
167
- if (this.logError) this.emit('error', `Chrome install error: ${error}`);
154
+ if (this.logDebug) this.emit('debug', `Chrome install error: ${error}`);
168
155
  return { path: null, arch, system: 'Linux Docker' };
169
156
  }
170
157
 
@@ -181,7 +168,7 @@ class Functions extends EventEmitter {
181
168
 
182
169
  return { path: null, arch, system: 'unknown' };
183
170
  } catch (error) {
184
- if (this.logError) this.emit('error', `Chromium detection error: ${error.message}`);
171
+ if (this.logDebug) this.emit('debug', `Chromium detection error: ${error.message}`);
185
172
  return { path: null, arch: 'unknown', system: 'unknown' };
186
173
  }
187
174
  }