homebridge-melcloud-control 4.4.1-beta.15 → 4.4.1-beta.17

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/functions.js +8 -5
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.4.1-beta.15",
4
+ "version": "4.4.1-beta.17",
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
@@ -143,10 +143,13 @@ class Functions extends EventEmitter {
143
143
 
144
144
  if (!isDocker) {
145
145
  try {
146
- await execPromise('sudo apt-get update -y');
147
- await execPromise('sudo apt-get install -y chromium chromium-browser chromium-codecs-ffmpeg || true');
148
- await execPromise('sudo apt-get install -y libnspr4 libnss3 libx11-6 libxcomposite1 libxdamage1 libxrandr2 libatk1.0-0 libcups2 libdrm2 libgbm1 libasound2 || true');
149
- } catch { }
146
+ this.emit('debug', `Try install chromium`);
147
+ await execPromise('sudo apt update -y');
148
+ await execPromise('sudo apt install -y chromium chromium-browser chromium-codecs-ffmpeg || true');
149
+ await execPromise('sudo apt install -y libnspr4 libnss3 libx11-6 libxcomposite1 libxdamage1 libxrandr2 libatk1.0-0 libcups2 libdrm2 libgbm1 libasound2 || true');
150
+ } catch (error) {
151
+ this.emit('debug', `Install chromium failed ${error}`);
152
+ }
150
153
  }
151
154
 
152
155
  for (const path of armCandidates) {
@@ -180,7 +183,7 @@ class Functions extends EventEmitter {
180
183
 
181
184
  if (isDocker) {
182
185
  try {
183
- await execPromise('apt-get update -y && apt-get install -y chromium || true');
186
+ await execPromise('apt update -y && apt install -y chromium || true');
184
187
  await access('/usr/bin/chromium', fs.constants.X_OK);
185
188
  result.path = '/usr/bin/chromium';
186
189
  return result;