Skip to content

Commit

Permalink
Merge pull request homebridge#125 from NorthernMan54/master
Browse files Browse the repository at this point in the history
Fix for issue homebridge#124
  • Loading branch information
NorthernMan54 authored Jul 19, 2023
2 parents 2cf7256 + 24c417c commit 26c1ac7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
### Supported Models
* **x86_64** - All 64 bit Intel / AMD CPU Models
* **evansport** (i686) - DS214play, DS414play, DS415play
* **x86_64** - All 64 bit Intel / AMD CPU Models ( braswell )
* **evansport** (i686) - DS214play, DS414play, DS415play ( evansport )
* **rtd1296** (armv8) - DS420j, DS220j, RS819, DS418, DS218, DS218play, DS118
* **armada37xx** (armv8) - DS120j, DS119j
* **armada38x** (armv7) - DS419slim, DS218j, RS217, RS816, DS416j, DS416slim, DS216, DS216j, DS116
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ This third-party Synology Package simplifies the process of running [Homebridge]

This package will deploy Homebridge and the Homebridge UI natively on your Synology NAS. It will create a new shared named `homebridge` to store the Homebridge configuration and user data.

#### Dependencies

This package will leverage the Synology supplied NodeJS v18 package

#### Add the Homebridge Synology Package Source:

1. Open Package Center in DSM and select the `Settings` option.
Expand Down
13 changes: 11 additions & 2 deletions app/source.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#!/bin/sh

NODE_BIN_PATH="/var/packages/homebridge/target/app/bin"


export HB_SERVICE_STORAGE_PATH="$(readlink -f /var/packages/homebridge/shares/homebridge)"
export HB_SERVICE_NODE_EXEC_PATH="/var/packages/homebridge/target/app/bin/node"

# Use Synology supplied NodeJS v18 - https://github.com/homebridge/homebridge-syno-spk/issues/124
# if [ -f /var/packages/Node.js_v18/target/usr/local/bin/node ]; then
NODE_BIN_PATH="/var/packages/Node.js_v18/target/usr/local/bin"
export HB_SERVICE_NODE_EXEC_PATH="/var/packages/Node.js_v18/target/usr/local/bin/node"
# else
# NODE_BIN_PATH="/var/packages/homebridge/target/app/bin"
# export HB_SERVICE_NODE_EXEC_PATH="/var/packages/homebridge/target/app/bin/node"
#fi

export HB_SERVICE_EXEC_PATH="/var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js"

# synocommunity ffmpeg path
Expand Down
1 change: 1 addition & 0 deletions repo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const path = require('path');
version: version,
dname: 'Homebridge',
desc: 'Homebridge on Synology DSM.',
install_dep_packages: 'Node.js_v18',
price: 0,
download_count: 56691,
recent_download_count: 1138,
Expand Down

0 comments on commit 26c1ac7

Please sign in to comment.