Skip to content

Commit 18885a6

Browse files
CopilotdonavanbeckerNorthernMan54
authored
Add homebridge-plugin-update-check to beta releases only with conditional installation (#168)
* Initial plan * Add homebridge-plugin-update-check as pre-installed plugin Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com> * Fix conflicts and add conditional plugin installation - Add homebridge-plugin-update-check to homebridge-beta-bot.json for both 32bit and 64bit beta configurations - Add conditional installation in build.sh - only install plugin if it exists in package.json - Prevents build failures when plugin dependency is missing Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com> * Resolve conflicts with latest branch - update homebridge-config-ui-x to ^5.5.1-beta.4 Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com> * Remove homebridge-plugin-update-check from stable release, keep in beta only Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com> Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com>
1 parent c46eb9c commit 18885a6

File tree

6 files changed

+129
-2
lines changed

6 files changed

+129
-2
lines changed

.github/homebridge-beta-bot.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"name": "homebridge",
1717
"pattern": "^2.0.0-beta"
1818
},
19+
{
20+
"name": "homebridge-plugin-update-check",
21+
"tag": "beta"
22+
},
1923
{
2024
"name": "node",
2125
"tag": "^22.x.x"
@@ -33,6 +37,10 @@
3337
"name": "homebridge",
3438
"pattern": "^2.0.0-beta"
3539
},
40+
{
41+
"name": "homebridge-plugin-update-check",
42+
"tag": "beta"
43+
},
3644
{
3745
"name": "node",
3846
"tag": "^24.x.x"

beta/32bit/package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beta/32bit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dependencies": {
2424
"homebridge": "^2.0.0-beta.29",
2525
"homebridge-config-ui-x": "^5.5.1-beta.4",
26+
"homebridge-plugin-update-check": "^2.0.0-beta.2",
2627
"node": "^22.19.0"
2728
}
28-
}
29+
}

beta/64bit/package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beta/64bit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dependencies": {
2424
"homebridge": "^2.0.0-beta.29",
2525
"homebridge-config-ui-x": "^5.5.1-beta.4",
26+
"homebridge-plugin-update-check": "^2.0.0-beta.2",
2627
"node": "^24.7.0"
2728
}
28-
}
29+
}

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ cp "$PACKAGE_JSON_PATH" staging/opt/homebridge/package.json
4242
NODE_VERSION=$(jq -r '.dependencies.node | gsub("^\\^"; "v")' "$PACKAGE_JSON_PATH")
4343
HOMEBRIDGE_VERSION=$(jq -r '.dependencies["homebridge"]' "$PACKAGE_JSON_PATH")
4444
HOMEBRIDGE_UIX_VERSION=$(jq -r '.dependencies["homebridge-config-ui-x"]' "$PACKAGE_JSON_PATH")
45+
HOMEBRIDGE_PLUGIN_UPDATE_CHECK_VERSION=$(jq -r '.dependencies["homebridge-plugin-update-check"]' "$PACKAGE_JSON_PATH")
4546

4647
MAJOR_NODE=$(jq -r '.dependencies.node | gsub("^\\^"; "")' "$PACKAGE_JSON_PATH" | cut -d. -f1)
4748

@@ -99,6 +100,12 @@ export npm_config_loglevel=error
99100
npm install --location=global homebridge-config-ui-x@$HOMEBRIDGE_UIX_VERSION
100101
echo "|Homebridge UI| $HOMEBRIDGE_UIX_VERSION |" >> "$MANIFEST"
101102

103+
# Only install homebridge-plugin-update-check if it exists in package.json
104+
if [ "$HOMEBRIDGE_PLUGIN_UPDATE_CHECK_VERSION" != "null" ]; then
105+
npm install --location=global homebridge-plugin-update-check@$HOMEBRIDGE_PLUGIN_UPDATE_CHECK_VERSION
106+
echo "|Plugin Update Check| $HOMEBRIDGE_PLUGIN_UPDATE_CHECK_VERSION |" >> "$MANIFEST"
107+
fi
108+
102109
npm install --prefix "$(pwd)/staging/var/lib/homebridge" homebridge@$HOMEBRIDGE_VERSION
103110
echo "|Homebridge| $HOMEBRIDGE_VERSION |" >> "$MANIFEST"
104111

0 commit comments

Comments
 (0)