Skip to content

Commit

Permalink
4.48.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Jun 24, 2022
1 parent dbf8bb7 commit 167ed49
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
@@ -1,9 +1,24 @@
## 4.47.0 (2022-06-24)

### Notable Changes

* **System** Faster, and hopefully more reliable, updater for the Homebridge UI on macOS, Linux, Docker and FreeBSD
* This will only apply to updates after v4.48.0, not updating to v4.48.0
* If the new update process fails, it will fallback to using the standard `npm` update method automatically
* Linux (via apt package): requires apt package update (=>1.0.25)
* Linux / macOS / FreeBSD (setup via `hb-service install`): no changes required
* Docker: may require image update (=>2022-06-24)
* Synology DSM 7: requires package update via DSM Package Center (=>3.0.5)

### Other Changes

* **i18n:** Improvements to Thai language translations ([#1364](https://github.com/oznu/homebridge-config-ui-x/pull/1364))

## 4.47.0 (2022-06-15)

### Notable Changes

* **Auth:** Login wallpaper is now a solid colour matching the users current theme, custom wallpaper images are still used if configured
* **System:** If the UI detects it's own dependencies are missing or corrupt, it will trigger a task to fix them (on certain systems only, update required)
* **System:** Stale temporary npm directories that prevent the UI and other plugins from updating (`npm ERR! code ENOTEMPTY`) will be removed when doing a full service restart for users running on Linux with [`hb-service`](https://github.com/oznu/homebridge-config-ui-x/wiki/Homebridge-Service-Command)

### Other changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "homebridge-config-ui-x",
"displayName": "Homebridge UI",
"version": "4.48.0-test.15",
"version": "4.48.0",
"description": "A web based management, configuration and control platform for Homebridge",
"license": "MIT",
"author": "oznu <dev@oz.nu>",
Expand Down
12 changes: 0 additions & 12 deletions src/bin/hb-service.ts
Expand Up @@ -520,8 +520,6 @@ export class HomebridgeServiceHelper {
* Start the user interface
*/
private async runUi() {
const moduleNotFoundPath = path.join(this.storagePath, '.uix-module-not-found');

try {
// import main module
const main = await import('../main');
Expand All @@ -531,17 +529,7 @@ export class HomebridgeServiceHelper {

// extract services
this.ipcService = ui.get(main.HomebridgeIpcService);

// remove "module not found" error flag
if (await fs.pathExists(moduleNotFoundPath)) {
await fs.remove(moduleNotFoundPath);
}
} catch (e) {
// if we encounter a "module not found" error, write a file to disk so the startup process can handle it
if (e && e.code === 'MODULE_NOT_FOUND') {
await fs.writeFile(moduleNotFoundPath, '1');
}

this.logger('ERROR: The user interface threw an unhandled error');
console.error(e);

Expand Down

0 comments on commit 167ed49

Please sign in to comment.